I'm making a game to be played by two players. Player vs. CPU or player versus player. Since each player may have 1, 2 or 3 moves per round, depending on the previous choice that was made, how can I make every player has his turn to play?
Develop games in your browser. Powerful, performant & highly capable.
You could make a global variable named "Turn"
Then add a "compare variable turn" check...
So if it = 0, it would mean humans turn... 1 might = CPU's turn...
Thanks antares,
I'd tried it already. I'd tried to use a boolean variable, but the problem is how to avoid one for playing in the other turn. I've created groups to activate/deactivate each time. But i think i'll have to reorganize my events order to make it work properly. The thing is, i know there must be a much simpler way to do this, but i didn't realize it yet.
If there is let me know...
I've found, it can be hard to add in, if you add it in mid project... which is why, getting a working prototype up first, is so important...