View Single Post
  #22  
Old 07-24-2006, 06:32 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Red face

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.+= cos(this.angle);
player.+= sin(this.angle);
}
}
else if (
params[0]=="39") {
with (findimg(455)) {
rotation -= pi/100;
}
}
else if (
params[0]=="40") {
with (findimg(455)) {
player.-= cos(this.angle);
player.-= 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)
__________________
Deep into the Darkness peering...
Reply With Quote