Plans for turn-based inclusion?

Discussion and feedback on Construct 2

Post » Sat Aug 17, 2013 7:00 pm

Hi, I am a beginner to construct 2 so please excuse my lack of knowledge and is there any plan to include template and tutorial for making a turn-based strategy game using construct?

If not, how hard is it to use the existing real-time strategy template and change the gameplay to turn-based in terms of AI behavior and events?

If those exist already, I would be happy if you point it out to me, thanks.
B
36
S
18
G
11
Posts: 248
Reputation: 8,694

Post » Sat Aug 17, 2013 7:38 pm

If you are unfamiliar with the terms Boolean, and or state machine you should take some time out and do some Googling for those.
I know they sound some what heady, but they are actually very simple. In fact they can be implemented in C2 easily using global, and instance variables.

tldr:
Lots of:
if a=b do foo
at some point in foo change anewt2013-08-17 22:18:55
Image ImageImage
B
168
S
50
G
169
Posts: 8,281
Reputation: 108,191

Post » Sat Aug 17, 2013 7:54 pm

I use globals.
Player_One_Active = 0 or 1
Player_Two_Active = 0 or 1

Then based on the above yes player is active I make player_X active
Active_Player = (1,2) numbers being player number

This is a double check type system.

Using a lot checks
System - Active_Player = 1
condition Player_One_Active = 1
Do this and that and that and this

Create function called end of turn or something and
turn Player_X_Active = 0
And swop Active_Player = 2 etc
and run function at end of players turn whatever that may be

System - Compare Variable is your friend in turn based lol


Edit: There are 3 tutorials online somewhere
already using turn based. Will try and dig up linksDUTOIT2013-08-17 19:58:24
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Sat Aug 17, 2013 8:05 pm

you should check this post and ask for tips from the author. he is currently making a TBS game like Advance Wars.
B
2
Posts: 7
Reputation: 168

Post » Sat Aug 17, 2013 8:07 pm

you should check this post and ask for tips from the author. he is currently making a TBS game like Advance Wars.

http://www.scirra.com/forum/turn-based-strategy-like-advance-wars-devlog_topic74453_post445783.html#445783
B
2
Posts: 7
Reputation: 168

Post » Sat Aug 17, 2013 8:09 pm

More links:
http://www.scirra.com/forum/tirahan-turnbased-strategy-game-for-2-players_topic59733.html
and
more a work in progress
http://www.scirra.com/forum/open-source-turnbased-strategy-game_topic66620.html
and this
http://berryijmker.com/how-to-create-a-pokemon-battle-system-in-construct-2-html5-part-2/
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Sat Aug 17, 2013 9:42 pm

Thanks, everyone.
Those links have what I need to know.
B
36
S
18
G
11
Posts: 248
Reputation: 8,694


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests