Hi, i want to create a combo attack just like in tekken game, basically changing frames when the player press the next key within a specific span of time, i tried the following but still not manage it work. Any help is appreciated.
if (this.melee.isDown) {
meleeFrameStart = 16;5
meleeFrameEnd = 23;
if (this.melee.upDuration(1000)) {
if (gokussgod.frame < meleeFrameEnd) {
gokussgod.frame = gokussgod.frame++;
} else {
gokussgod.frame = meleeFrameStart;
}
} else {
gokussgod.frame = meleeFrameStart;
}
}