- Home /
how to create turns between 2 players
I want to find out how do you create turns between players? so a player has 3 characters he can select between to make one move, once that move is done then its player 2 turn, how can you create a script which looks for which players turn it is through the use of a gameobject array which stores the current player? whereby i can drag and drop a player gameobject into the array when im unity.
When a player selects a character and it is added to the array, you can check if the length of the array is odd or even. If odd, it's player 2's turn, for example.
Your answer

Follow this Question
Related Questions
how well does unity work for turn-based game time-type? 3 Answers
A.I. Pressing next turn after 1 second. 1 Answer
2D Grid Movement (turn based) 2 Answers
Making in turn-based rpg in which characters can take turn ahead of time 0 Answers
How can I get my pathfinding algorithm to know that it cant go through certain sides of tiles 1 Answer