How do I make turns for each player?

Get help using Construct 2

Post » Fri Oct 09, 2015 1:08 am

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?
B
14
S
5
Posts: 110
Reputation: 1,338

Post » Fri Oct 09, 2015 3:12 am

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...
Eat ALL THE BACON!
B
47
S
17
G
3
Posts: 290
Reputation: 5,068

Post » Fri Oct 09, 2015 10:37 am

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.
B
14
S
5
Posts: 110
Reputation: 1,338

Post » Fri Oct 09, 2015 12:02 pm

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...
Eat ALL THE BACON!
B
47
S
17
G
3
Posts: 290
Reputation: 5,068


Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948 and 43 guests