What I'm working on is an action game where the player uses (1) character and takes a certain number of turns to attack the enemies on screen. Then, when the player runs out of turns, the enemies will attempt to attack the player in an assigned order based on a timer.
The enemies have an attack order ex. #1 to #5 (first to fifth). When it's time for the enemy's turn, the attack order starts at #1. Then, 1 second passes and the attack order increases up 1 to #2 and so on. Once the order ends at #5, everything resets and the player has their turn to attack again.
I'm having a problem getting the attack order increase to trigger on a timer; not sure about using global or instance variables to have a timer activated. Also, how would this work if the player uses up to (4) characters with (1) turn each?
Any help/info that could be provided would be appreciated. I can also make the .capx available if needed.