|
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 10:32 AM..
|