I'm trying to make an Active Time Battle battle system (like Final Fantasy, Child of Light, Grandia) but I'm struggling to get it work.
In this kind of RPG there is a bar with icons representing each combatent. When a icon arrive at the end, the character can attack or use a move.
* First I made two groups: "Player Turn" (which gives the player control to use commands) and "Guard Turn" (AI for the enemy).
* After that, I made two objects (Player ATB and Guard ATB) with bullet behavior who moves to the right at the speed of the instance variable "Perception". When they reach another object, the corresponding group is activated.
Everything went nice and smooth until they reached the end point at the same time. When this happens, at the same time, the enemy attacks and the player can use his attacks. I want the player to attack before the enemy or, even better, the one with more "perception" acts first.
How can I put the group activation in order?