help with variable problem

0 favourites
  • 3 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • 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.

    <img src="http://i.imgur.com/M0FZtwC.png" border="0" />

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • thanks, didn't see that event <img src="smileys/smiley5.gif" border="0" align="middle" /> , works perfectly. I knew it was going to be something simple i had missed.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)