Single variable for different scene. It will be a problem?

NeverbeNeverbe Member Posts: 117
edited November -1 in Working with GS (Mac)
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

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    Unless you reset the variable when you change scene, it should still stay at the number it's reached.

    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 :D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • NeverbeNeverbe Member Posts: 117
    Yes I reset it because new scene = new pictures but I want to know if when a rule into an actor says "if n = 3 something happened" and a rule into another actor that ISN'T into the scene says the same things this cause some problem.
Sign In or Register to comment.