Properties over to next scene

I don’t know how easy this is, but I can’t seem to find out how to do it anywhere.

If a player has a score and it is adding up in the scoring property which then displays as text, how is it possible to transfer the score to the next scene?

You have to assign your score to a global variable I believe.


GameLogic.score = 100 #Where 100 is your score numeral, and GameLogic.score your variable.

Ok, so how would assign the score from one scene, and the next to a global variable?

By using the code I presented earlier in a python script.

sorry I really am a newbie when it comes to python scripts. When it comes to assigning the score to the variable where am I to begin? I had a few attempts, but they were a no go


g.score = own.score
# If your score property is called something else, then change own.score to

Or go here and check out blengine’s Health Scenes demo file.

YES! lol, I tryed so many things trying to get it to work and I finnaly realised that gamelogic can store properties under a name, so they can be recalled easily. Thanks for the help guys! :smiley: :smiley: :smiley: