Hjalte
1
Okay so in my game you move in turns and so do enemies, barrels, bosses and so on. Problem is how do I know if everything is done doing their thing.
So I want to know how I can check if every enemy/barrel/boss has finished executing its “turn”. These turns can be attacking or walking and other stuff that happens over time which means its not as simple as just checking when the player doing his thing.
cjdev
2
You could create a global list of GameObjects and have each object add itself to the list at the beginning of the turn. Then when it is finished with it’s turn it would remove itself from the list. You can then see when the turn is over by checking if the list is empty.