Scorring acros for scene

Hey i not understand for score accorss for scene every time i switch scenes, the score and coins always reset. How can i prevent this. But when I change the scene variable to global, it doesn’t work. How can I resolve this?

Reset score

In the first subevent you are setting the scene variable Gem = 0, not the global variable.

But that won’t fix your problem. You need to set the score and gem texts at the start of the scene, in an event with the condition “At the beginning of the scene”.

Because in the Editor, you have put ""Coin: 0"and “Score: 0”. These are not getting updated until you collect the first coin for the level, and then they jump up in value to what you had scored in the previous level.

like this sir?

case close sir i add At the beginning of the scene text