Hello all again, I basically abandoned this script long ago becuase of more important stuff and now that I'm done with that stuff I want to finish this script,
PHP Code:
if (params[0]=="37") {
with (findimg(455)) {
rotation += pi/100;
}
}
else if (params[0]=="38") {
with (findimg(455)) {
player.x += cos(this.angle);
player.y += sin(this.angle);
}
}
else if (params[0]=="39") {
with (findimg(455)) {
rotation -= pi/100;
}
}
else if (params[0]=="40") {
with (findimg(455)) {
player.x -= cos(this.angle);
player.y -= sin(this.angle);
}
}
thats part of the script. I want it to move the player & img on the direction the imgs rotatation. Any thought of how to make this happen. Right now it only moves left to right and if I put quotes around this.angleit move diagonally, either goes north east or south west.
to Yen : ( I've tried contacting you through AIM but you arnt on when I am)