At 8/10/08 09:06 AM, iluvAS wrote:
ok.. so how do i put that into actionscript?? use _xscale _yscale or smth??? i totally have no idea how to use maths in actionscript
put this on the character (as long as it is seen from above, else: please explain how this game is and probably give us a screenhot)
onClipEvent (load){
walkspeed = //any number
}
onClipEvent (enterFrame){
if (Key.isDown (Key.UP)){
_rotation = 0;
_y -= walkspeed
}
if (Key.isDown (Key.RIGHT)){
_rotation = 90;
_x += walkspeed
}
if (Key.isDown (Key.DOWN)){
_rotation = 180;
_y += walkspeed
}
if (Key.isDown (Key.LEFT)){
_rotation = -90;
_x -= walkspeed
}
}
i hope this is what you need