Practicing the platform beat em' up.
My goal is to earn new combo moves.
I currently have "D" pressed and player kicks.
Once "X" amount of items are collected, the kick combo 1 is activated.
The player presses D&S simultaneously and three series of kicks are triggered.
So, here lies my first obstacle for this and future combos.
1. I would like the combo kicks only to work in sequence when the player presses the assigned button 3 separate times within "X" amount of seconds between each press, otherwise the combo sequence stops. Each specific kick will trigger each time the button is pressed.
EXAMPLE: Press D to trigger first kick, Press D (within X amount of time) to trigger second type of kick, Press D and Up (within X amount of time) to trigger final kick in the combo sequence.
2. I have the AI set to instance variables. 0=IDLE, 1=Walk Right, 2= Walk Left, 3= Walk Right w/ faster max speed, 4=Walk Left w/faster max speed. The enemy follows my player, but only stops when directly overlapping him. Multiple enemies do the same so its all one glob.
I am trying the enemy.x> or <player.x to stop, but I need for enemies to not overlap one another, stop just prior to player and attack.
Also, if the player can attack faster than enemy, then enemy stops attack and goes in "taking a hit" mode.
I will start with that. I've learned much from the mass tutorials and forum posts, but this one seems to slip.
thanks in advance.