Score system problem!

I’m currently working on a 2D platformer level, which overall is working really good.
I’ve implemented a score system that, to a certain point, works between levels, using game instance. But there’s a weird thing happening:

  1. Let’s say you grab ten coins.
  2. Your score goes to 10.
  3. You change the level, and the scoreboard is still 10.
  4. The moment you grab, lets say, one coin, the score goes from 10 to 1, like if it was forgetting the previous value.

Here’s a picture of the blueprints. “Current_Score” is the value I use in the game instance. Any help would be highly appretiated. Thanks!

Looks like TARGET SCORE is a local variable, this will return to default when the new map loads. You could use CURENT SCORE which is in the game instance (this does not default when loading maps).

Another solution would be to save and load the score during map change

I’ve had a somewhat similar problem and was able to solve it with other members’ help. This may help you as well, check it out.

Click this link to the solved problem

Visually organize your blueprint as well, it helps you see things in proper order rather than seeing a bunch of messy lines. It also makes it for others to read your blueprint :smiley:

Fixed it! Thanks a lot!