Page 1 of 1

Taking Turns

PostPosted: Sat Jun 08, 2013 8:41 am
by barney12345
Hello
I'm making a multiplayer strategy game and I was making each players move possible when I realised that one player could non stop have their go. This would be fine as I have developed something to signal whose go it is, but I think this may be required. Any ideas in how to restrict whose go it is?

Re: Taking Turns

PostPosted: Sat Jun 08, 2013 9:13 am
by skydereign
The most straightforward solution is to have a variable hold which player's turn it is. Depending on how you do turns, this often will be enough.

Re: Taking Turns

PostPosted: Thu Jun 20, 2013 8:26 am
by barney12345
Can you help with this? please? :?: :?: :?: :?: :?:

Re: Taking Turns

PostPosted: Thu Jun 20, 2013 6:24 pm
by skydereign
You are going to have to elaborate on what you don't understand. I gave you a solution that works in many cases. All you need to do is have a variable that holds which player's turn it is. If it is 0, than the first player can move. This can be achieved by an if statement in that player's units making sure they can only be moved on the proper turn.