help with variable problem

Get help using Construct 2

Post » Tue Apr 02, 2013 10:00 pm

Hey i have a problem where I am creating a wave/round system for my game and i want it so for example when 5 enemies are killed, the round will stop and layer 3 will become visible (the upgrade shop) and when the player clicks ready, layer 3 becomes invisible and the game proceeds to the following round.

This all works however for one issue, when 5 enemies are killed, I have an event which tells the game to switch a variable to wave 1 and then when 10 enemies die, it tells the variable to switch to wave 2 etc.

The problem Im having is when 5 enemies are dead, the wave will stop but when i click submit, the next wave starts but layer 3 does not become invisible until i kill an enemy so there are 6+ dead enemies and then click the submit button. I know the issue is that the 2 events conflict with each other and i was wondering if anyone knew how to get around this.

Hopefully you understand what i am saying. I have provided a screenshot to hopefully help you understand what im talking about.

DeadlyCheese2013-04-02 22:06:09
B
4
Posts: 9
Reputation: 468

Post » Tue Apr 02, 2013 10:13 pm

Add a 'System: Trigger Once' to the last two events there so it doesn't keep setting the layer 3 visible while Enemies = 5 or 10.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,000

Post » Tue Apr 02, 2013 10:39 pm

thanks, didn't see that event , works perfectly. I knew it was going to be something simple i had missed.DeadlyCheese2013-04-02 22:40:23
B
4
Posts: 9
Reputation: 468


Return to How do I....?

Who is online

Users browsing this forum: currypuff, makotto, Yahoo [Bot] and 19 guests