How to I add level scores together?

Get help using Construct 2

Post » Sat May 25, 2013 4:56 am

Hello, I'm trying to add the scores of each level together and have a sum total score show up on each following level.

My question is, is this how you do it? Create the appropriate variables and then do this?...




Thanks all:)!,
guannstar


guannstar2013-05-25 05:03:45
B
19
S
5
G
1
Posts: 574
Reputation: 3,021

Post » Sat May 25, 2013 7:02 am

this looks good for me but before system set 'every tick'
B
94
S
19
G
34
Posts: 1,840
Reputation: 27,988

Post » Sat May 25, 2013 7:07 am

If you create any total score and value all level score to total score.It should be better way than you use.like this action.

system->add to->variable:Totalscore,value:score.
B
10
S
3
G
3
Posts: 162
Reputation: 3,190

Post » Sat May 25, 2013 9:34 am

it depends on wich point of your game/time you want to add the Levelscore to the totalscore!

Level ended:

on button press(nextlvlbutton) --> add to --> variable:Totalscore,value:score

if the button is clicked, the score will be added to the totalscore

;-)
B
18
S
6
G
3
Posts: 197
Reputation: 4,129

Post » Mon May 27, 2013 10:00 pm

Hey, thanks a lot for the help, but I couldn't get it to work though. The "total score" just stays at zero:( Can you please show me a simple capx example?
B
19
S
5
G
1
Posts: 574
Reputation: 3,021

Post » Mon May 27, 2013 10:03 pm

Yonda, do you still have the most recent WizardExample file that I sent you?
B
19
S
5
G
1
Posts: 574
Reputation: 3,021


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests