Notification Box not displaying

Get help using Construct 2

Post » Tue Aug 06, 2013 2:49 am

I'm currently utilizing a turn-based system to my board game.

Player spawning and computer spawning works great, but after spawning is completed, I want the game to move on to gameplay. The first step is displaying a message to the player that it is his/her turn, but the message never fires for some odd reason.



Relevant code:



BoardGame.capx
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,224

Post » Tue Aug 06, 2013 3:24 am

Taking event 19 out of the group "Game States" fixed it. I'm still trying to figure out why it wouldn't work in there though.
B
46
S
14
G
7
Posts: 603
Reputation: 8,096

Post » Tue Aug 06, 2013 3:32 am

I disabled event 19 and saw no change.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,224

Post » Tue Aug 06, 2013 3:34 am

Don't disable it. Take it out of the group.
B
46
S
14
G
7
Posts: 603
Reputation: 8,096

Post » Tue Aug 06, 2013 3:35 am

BoardGame_BHT_2.capx

The main problem was that 'generating=0' (event 16) keeps setting GameState to 1. Make sure your state changes only fire once.
ImageImageImage
B
71
S
21
G
203
Posts: 3,584
Reputation: 115,072

Post » Tue Aug 06, 2013 3:35 am

I did a cut remove, ran the program, and saw no change. I pasted it back in.

Disabling it is practically the same as taking it out.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,224

Post » Tue Aug 06, 2013 3:37 am

@blackhornet to the rescue!

Adding another condition to the generating clause definitely fixed it!
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,224

Post » Tue Aug 06, 2013 3:41 am

I meant move the event out of the group but I guess you found the actual problem.
B
46
S
14
G
7
Posts: 603
Reputation: 8,096


Return to How do I....?

Who is online

Users browsing this forum: bangoo, NetOne and 6 guests