
12-12-2001, 06:04 AM
|
|
Registered User
|
Join Date: Nov 2001
Location: Canada
Posts: 77
|
|
Why?
|
why will this not work to give me a flame going up if player faces that way or down if player faces that way?
if (weaponfired&&playermp>9&&playerdir=up){playermp-=10;
xAxisPos = 4;
while (xAxisPos < 20) {
blast1();
if (xAxisPos != 19) {
sleep 0.05;
}
xAxisPos++
}
}
function blast1() {
putexplosion2 2,1,playerx+0.7,playery-xAxisPos;
}
if (weaponfired&&playermp>9&&playerdir=right){playerm p-=10;
xAxisPos = 4;
while (xAxisPos < 20) {
blast2();
if (xAxisPos != 19) {
sleep 0.05;
}
xAxisPos++
}
}
function blast2() {
putexplosion2 2,1,playerx-xAxisPos,playery;
} |
__________________
Psyche[Leader]{Natures Avengers}
Bomys Rock!
|
|
|
|