Single variable for different scene. It will be a problem?
Neverbe
Member Posts: 117
As you had read in the title I had created an integer variable.
I increment this variable using the touch event.
When the value change I change also the image of my scene.
Allthing work but I don't know if when a scene change the variable value this influence also the other scene...
Thanks to all
I increment this variable using the touch event.
When the value change I change also the image of my scene.
Allthing work but I don't know if when a scene change the variable value this influence also the other scene...
Thanks to all
Comments
It's how you can keep track of someone's score, for example, across a whole game made up of several scenes.
Hope that helps,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io