How do I make a timer scoreboard that saves

Get help using Construct 2

Post » Tue Aug 23, 2016 3:23 pm

I want to make a score but that counts in seconds at the top of the screen so you can see how long you survive but it should also save.
B
5
Posts: 13
Reputation: 253

Post » Tue Aug 23, 2016 4:56 pm

Hi,

save game
https://www.scirra.com/tutorials/search?q=save%20score

and for time score
every 1 seconds | add 1 to variableScore

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Tue Aug 23, 2016 8:54 pm

Thx but how do I make is show up on screen if u die?
B
5
Posts: 13
Reputation: 253

Post » Wed Aug 24, 2016 8:05 am

Hi,
I took the tutorial https://www.scirra.com/tutorials/5343/h ... -game-capx
You can download it (left corner)

The eventsheet "Saving Events"
Line 4: every tick/frame update the textfield Score and Highscore to the stored value (the variable Highscore is in the same eventsheet - the Score is in Eventsheet "gameevents")
Image

Now take a look in the eventsheet "playerevents"
Here you find in line 7 that you get 10 points for jumping over a log and in line 15 you get 50 points for reaching the fire.
If you delete those lines and change it to every 1 second | add 1 to Score we have the game you want.

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Syazanie Amirin and 10 guests