Hi! I checked many post and couldn't get a complete answer, so I would appreciate some help.
How to I make enemies act in order?
I'm making a turn based limited dungeon crawler, inspired by games like Hoplite.
After the player acts, I want for all enemies to act, but not at the same time, they should do it one after another, so they don't end up occupying the same tile or such.
The best solution so far I managed was to create a timer that multiples a base value for each of their LoopIndex, but I fear that this might bring troubles long term (if I need a new one to take more time to do an attack, for example), I could add a variable of "neededTimeToAttack", bur it feels more like a patch than a solution.
I'm experimenting with setting each LoopIndex to a variable TurnOrder for each instance, then checking it against a global variable, but all enemies started acting simultaneously again
Can someone detect the problem in my logic? It goes over my head.
Cheers!