View Single Post
  #13  
Old 10-29-2001, 07:54 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Poogle
// NPC made by ~|¤Colit¤|~
if (playerenters) {
this.fuel=100;
this.x = x;
this.y = y;
}
if (playertouchsme) {
}
if (strequals(#c,Buy Car)){
set incar;
playerx = this.x;
playery = this.y;
hideplayer 1;
}
if (strequals(#c,Get out)){
unset incar;
}
while (playerhearts>=0) {
if (incar) {
if (keydown(0)) {
if (!onwall(x+0.5,y-0.5)) {
y-=0.5;
}
}
if (keydown(1)) {
if (!onwall(x-0.5,y+0.5)) {
x-=0.5;
}
}
if (keydown(2)) {
if (!onwall(x+0.5,y+2)) {
y+=0.5;
}
}
if (keydown(3)) {
if (!onwall(x+2,y+0.5)) {
x+=0.5;
}
}
}}
Needs ganis
Reply With Quote