A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Button pushes only detected on certain frames

  1. #1
    Junior Member
    Join Date
    Nov 2007

    [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.


  2. #2
    AS3 Mod
    Join Date
    Sep 2007
    if(_currentframe == 9 || _currentframe == 2) {
    // Then dont do this code
    // 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

Click Here to Expand Forum to Full Width

HTML5 Development Center