Thread: Why?
View Single Post
  #1  
Old 12-12-2001, 06:04 AM
psi psi is offline
Registered User
Join Date: Nov 2001
Location: Canada
Posts: 77
psi is on a distinguished road
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!
Reply With Quote