Subtract from Initial Value

0 favourites
  • 2 posts
From the Asset Store
Check preview, download and add value to your games.
  • Hi,

    I have an Instance Variable that starts at 1 for a turretCount since I give the player 1 turret to start the level. When they add a turret the turretCount increases and works fine. However, when the enemy reaches the target the turretCount decreases - which also works fine. The problem I'm having is that I want to end the level/game when the turretCount reaches zero - but that doesn't happen.

    I have it setup to go to the score layout when it reaches zero but I'm not sure how to overcome that "initial value" of one.

    Any ideas? Thanks in advance for your help.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Provide a CAPX to help us clarify what you said.

    Also, is a good practice make a text on the screen and setup it to refresh every tick with all the common and used variables, events, etc, also, I call it as "Debug".

    Always when I want follow the progress of something, I update my debug text box to meet what I want, like the time played, the variable count/toggle, etc.

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