ForumsProgramming Forumthe old slice and dice...

1 2826
Koshionos
offline
Koshionos
881 posts
Jester

So in the game i am working on I want to make so that when a key is held down (if (Key.isDown(Key.SPACE)){
it would make the character cycle through the attack frames, I am using a AS2, some help would be very much appreciated

  • 1 Reply
HAXALLNOOBS
offline
HAXALLNOOBS
19 posts
Nomad

give the character an instance name of something like "Player"
the just type underneath

(Key.isDown(Key.SPACE)){

player.gotoAndPlay(#);//# is the frame the attack is in.

hope this helps!
Showing 1-1 of 1