...

View Full Version : Newbie need help



zoor
03-13-2012, 10:23 AM
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);
}
}
}
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum