-
[F8] Button pushes only detected on certain frames
I'm making a platform game in which you are a rectangle with a sword.
I need help making it so that certain button pushes are only detected on certain frames, so that you cant move while you're swinging a sword, and so that even if you hold down the spacebar, the man completes one full swing before starting another. If you need the .fla, i'll provide it. I'd appreciate help.
-thanks
-
if(_currentframe == 9 || _currentframe == 2) {
// Then dont do this code
}else{
// Do some stuff
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|