Hello everyone. I'm new to AS2 but I'm in the middle of designing a game. I've used the website to get some code; but it doensn't always work and I don't want to bump the thread. I'm using a listener when the Enter key is hit to go to the next frame; but that applies to every frame, not just one.
and when the animation for a character is done playing, I want to go to the next frame on the timeline; which also doesn't work.Code:stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUpHandler); private function onKeyUpHandler(event : KeyboardEvent) : void { switch(event.keyCode) { case Keyboard.ENTER: nextFrame(10); break; } }
Here's a video; can you tell me what I'm doing wrong.


Reply With Quote