Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Newbie need help

    can someone explain to me why this dont work, am new to coding in general, it only plays the second loop.


    onClipEvent (keyUp) {
    if (_root.char.hitTest(this)) {
    if (this._currentframe == 1) {
    if (Key.getCode() == Key.SPACE) {
    this.gotoAndStop(2);
    _root.ground.block.gotoAndPlay(2);
    }
    }
    if (this._currentframe == 2) {
    if (Key.getCode() == Key.SPACE) {
    this.gotoAndStop(3);
    _root.ground.block.gotoAndPlay(21);
    }
    }
    }
    }
    Last edited by zoor; 03-13-2012 at 11:32 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •