I’m trying to use key press to “move” my character in flash…instead of the one like http://www.kirupa.com/developer/mx/movement_keys.htm
…what I want to achieve is to use the left and right keys to rotate the object…when I press right…it turns clockwise…and when i press left…it turn anti-clockwise…
Thanks…the rotation works…but there’s a slightly problem here…
For example…when my MC has rotated 90 clockwise…I would wan it to move to the right using my right key…and not rotate even more…how can this be acheived?
What I actually want is that user can freely navigate the character…using up and down keys to move forward and reverse, left and right keys to rotate…=|
try making the object a movie clip, have it play certain frames when the user presses left, as in
onKeyPress(<left>) {
gotoAndPlay(10);
}
(for example)…
and when they press up and down, the movie clip can move up and down…and i’m pretty sure you know how to do that