How to fix the score?

0 favourites
  • 9 posts
From the Asset Store
Create the right kind of drama with Film Scoring Tools sound library!
  • So I'm new too Construct 2 and I've just began making a game in which you are a square and have to avoid other squares, if they hit you, you die. Every five seconds a new square spawns making it harder to dodge them since there is more squares on the screen.

    You get one point for every second you survive, however the score continues to add up even when you've died. Does anybody know any way of fixing this?

    Here is the link:

    dropbox.com/s/r2fwr6eqpjcgx2d/New%20Square%20Game.capx.lnk

    Thank you in advance.

  • You'e posted a link, not the actual capx.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Do you not just have to click on download when you click the link?

  • Just put a value somewhere... Lets call it "dead"

    Add this as a condition when you add to the score -- dead=0

    when you die you set dead=1 so it won't add to the score.

    Well I might miss something, or your problem is easily solved. :)

  • Just put a value somewhere... Lets call it "dead"

    Add this as a condition when you add to the score -- dead=0

    when you die you set dead=1 so it won't add to the score.

    Well I might miss something, or your problem is easily solved. :)

    Hey man thanks for the help, although I don't really know what you mean. Sorry it's just that I'm new to Construct.

  • it's because , even if you are "dead" , the monsters collide with the player , you can fix this issue by destroying the player object ...

    Cheers...

  • it's because , even if you are "dead" , the monsters collide with the player , you can fix this issue by destroying the player object ...

    Cheers...

    But I already have that done? On collision with an enemy the player sprite is destroyed?

  • I have not loaded or looked at your capx,but if your score is still going up,You must have a condition similar to:-

    every 1 second...add 1 to score

    so all you need to do is add

    player sprite is on screen

    every 1 second               ....add 1 to score

    so when your square is not on screen your score should stop rising...

    hope that helps.

  • Cheers man! It worked!

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