Turn based

Get help using Construct 2

Post » Thu Feb 20, 2014 2:26 am

Hi, Im new to construct 2. I have been trying reading and searching through the forums for any information on how to make a simple turn based game.

Can anyone 1 point me out in the right direction as to how to implement an end turn function as i couldnt find any tutorials in the forums and manaul. Thanks!
Posts: 31
Reputation: 635

Post » Thu Feb 20, 2014 2:35 am

It depends how you want it to work. Probably the simplest is to make one global variable and switch that between values
Global variable = 0
- do player 1 stuff
Global variable = 1
- do player 2 stuff

Changing turns can be made by timers - if some time passed set global variable to 1 or 0 or 1-global variable (will switch automatically between 1 and 0)
or player movement - if player finish moving - end turn

If I remember correctly there should be an example of turn based games in "How do I" - sticky post, but it's lost somewhere due to new forum installed recently
Posts: 2,611
Reputation: 36,844

Return to How do I....?

Who is online

Users browsing this forum: ChainBreak, Elliott and 4 guests