I am trying to implement a turn based game where each character in the game has a different turn speed.
For example:
CharacterA takes a turn every 0.5 seconds
CharacterB takes a turn every 0.3 seconds
CharacterC takes a turn every 0.7 seconds
So in the above case, CharacterB will take his turn first. The timer for the other two characters will pause to wait for CharacterB to perform his actions. Then CharacterA will take his turn...etc.
I want to put in a bar that fills up indicating how long until the character's turn. I was thinking of adding a callback function at the end of the sprite action for the bar filling up. The callBack function would pause the other character's Actions and allow the active character to take his turn. After the character takes his turn, his bar will restart and play a new sprite action with a callback function.
Would that be a good way to implementing this? I am worried about the turn timing getting de-synced due to constant pausing and starting. Should I use schedulers instead?