Scene attribute or game attributes

gariantrollgariantroll Member Posts: 219
edited November -1 in Working with GS (Mac)
Are there any benefits to using scene attributes over game attribute.

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi, scene attributes values are forgotten once you've left the scene; so if you revisited a scene, the original values only would apply.

    game attributes are remembered even when moving from scene to scene, so, for instance, if you have game.score which reaches, let's say, 251 in one level, then when moving to the next level and using a change attribute game.score to game.score + 10, it then becomes - of course - 262. Even if you returned to a previous scene, it would still be 262. Continuing through the game, whichever scene, it will always have its latest value remembered.

    ----------------------------------------------
    http://www.davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Keep in mind scene attributes can only be accessed from a unlocked actor in the scene
  • svnsvn Member Posts: 445
    Wait, what exactly is the difference between a scene and a game attribute?
  • gariantrollgariantroll Member Posts: 219
    JohnPapiomitis said:
    also keep in mind scene attributes can only be accessed from a unlocked actor in the scene

    You know I forgot about that, but I guess I really wanted to know if it has any effect on memory.
    svn said:
    Wait, what exactly is the difference between a scene and a game attribute?

    A scene attribute can only be use in the scene and a game attribute can be used globally in any scene.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    No memory difference between game and scene attributes.

    ----------------------------------------------
    http://www.davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.