How do I remember old score and accumulate?

Get help using Construct 2

Post » Fri Jul 24, 2015 3:02 am

Hi everyone,

I am currently able to record the score after each game.

How am I able to update the total score from accumulating the score after every game played?

Say game 1: 20 points, game 2: 30 points, game 3: 20 points. I should have a variable that accumulates to 70 points. I tried several conditions but it keeps getting reset.

Posts: 104
Reputation: 3,071

Post » Fri Jul 24, 2015 5:48 am

Is your variable being reset in game? or when you restart it?

Is it resets in game, then you might have a problem in your code that is setting it to it's initial value.
Create a global variable with the only function to store the sum of all the game's score. In the game of each round add to this variable value the player's score. If it's still resetting try to track down all commands you are setting that are related to this variable, you may have set a condition to reset it that you are not seeing.

However, if you are have problems keeping the value of the variable stores after you close the game you might wanna consider using a save file with local storage. You can learn how to do that in here: ... age-plugin
Posts: 280
Reputation: 2,522

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests