How do I Calculate score?

Get help using Construct 2

Post » Wed Apr 02, 2014 10:15 am

Hi guys :D
is there anyone can help me out or explain to me how to calculate scores?
example you have 5 stages or levels and every levels you will get scores or points. and when u reach the last levels you will get the total score and that's will be the high score. thannk you :)
B
5
Posts: 10
Reputation: 277

Post » Wed Apr 02, 2014 10:49 am

Just make a global variable called highscore or something and then add the score from every level to the highscore when the level ends. Then you will have your total highscore when all levels are over.
B
20
S
6
G
4
Posts: 347
Reputation: 4,451

Post » Sun Apr 06, 2014 5:16 am

Hi cvp
Thank you for your reply, i already tested like u just said and it works thank you, but this is just continuing the score from level 1 - level 2 like lets say level1 got 20 for the score and when i started level 2 the score start from 20 already what i want is back to 0 so every levels have different score and at the end on level 5 we can see the total score from level1 - level 5 like

Highscore Result

Level 1 : 20
Level 2 ; 30
Level 3 : 40
Level 4 : 60
Level 5 : 100
total : 250 ( Highscore result )

sorry for my bad english. :)
B
5
Posts: 10
Reputation: 277

Post » Sun Apr 06, 2014 9:25 am

If you want to make 5 levels, use 5 global variables and a 6th one for the total.
If you want to make 100 levels, I think you would need to learn "arrays "
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Sun Apr 06, 2014 2:47 pm

Yes, arrays are awesome, check 'em out.
B
21
S
5
G
1
Posts: 102
Reputation: 1,746


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests