
10-29-2001, 07:54 AM
|
|
Registered User
|
 |
Join Date: Jun 2001
Posts: 2,471
|
|
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 |
|
|
|