Hi
I am trying to get a object to move using the keys in flash 8. I am trying to get the objects code in the time line.
This is the code im using
plane.onEnterFrame=function(){
if (Key.isDown(Key.RIGHT)){
plane._rotation +=2
}
}
if (Key.isDown(Key.LEFT)){
plane._rotation -=2
}
if (Key.isDown(Key.UP)){
plane._rotation +=2
}
if (Key.isDown(Key.DOWN)){
plane._rotation -=2
}
plane._y+= Math.cos(plane._rotation*Math.PI/180)*-2
plane._x+= Math.sin(plane._rotation*Math.PI/180)*2
I really appericate all the help
thank you
ron997
I am trying to get a object to move using the keys in flash 8. I am trying to get the objects code in the time line.
This is the code im using
plane.onEnterFrame=function(){
if (Key.isDown(Key.RIGHT)){
plane._rotation +=2
}
}
if (Key.isDown(Key.LEFT)){
plane._rotation -=2
}
if (Key.isDown(Key.UP)){
plane._rotation +=2
}
if (Key.isDown(Key.DOWN)){
plane._rotation -=2
}
plane._y+= Math.cos(plane._rotation*Math.PI/180)*-2
plane._x+= Math.sin(plane._rotation*Math.PI/180)*2
I really appericate all the help
thank you
ron997