Hello Kirupans!
I have been working on a mario game for some time now, and I decided to add some punching combos for mario. The only problem is that I dont know how to do this. The code I am using for this is the following:
onClipEvent (enterFrame) {
if (Key.isDown(90)) {
this.gotoAndStop("punch1");
}
if (this.punch1._currentframe == 5) {
if (Key.isDown(90)) {
this.gotoAndStop("punch2");
}
if (this.punch2._currentframe == 5) {
if (Key.isDown(90)) {
this.gotoAndStop("kick");
}
}
}
}
Please help. This has been driving me MAD :crazy:.