How do I include event sheet under conditions

Get help using Construct 2

Post » Tue May 05, 2015 8:22 am

Hello,

i'm currently making some tests to develop a multiplayer turn-based game (1 vs 1). Thus, there will be one host and one peer by room.
Actions permitted to host and peer during their respective turn are the same.
Then, to avoid duplicating code I wanted to develop an event sheet (like GAME_LOGIC) and include it only under conditions like this :
Image

But it doesn't seem to work : both players can play at the same time.
If I duplicate the code from this sub-event-sheet in the if and in the "else" (ES_GameDetail contains the cancelled events): no problem, each player can only play during its turn.

Any idea ?

Thanks
B
6
S
1
Posts: 45
Reputation: 509

Post » Tue May 05, 2015 8:51 am

includes go at top of eventsheet. I would make a condition within ES_gameDetail as to whose turn it is and trigger events accordingly. There is a turn based multiplayer in tutorial section which handles turns very well.

Edit: link
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 » Tue May 05, 2015 9:04 am

Many thanks for the link ! It seems to match perfectly what I want to do :)
B
6
S
1
Posts: 45
Reputation: 509


Return to How do I....?

Who is online

Users browsing this forum: el3um4s and 8 guests