Make something a one time thing

So i want to have a scene before you start the game but i only want it to show once and never again
I know i use the save and load attribute behaviors but i am not certain

Comments

  • robertkdalerobertkdale USAMember Posts: 912

    1). Create a Boolean global attribute. For example: Show Scene Once Played

    2). Add a rule with a condition in the very first scene. Something like this.
    If Show Scene Once Played is true change current scene-to-scene 3. (This will skip over scene 2 if this condition is true.)

    3). Create a change attribute at the beginning of scene 3, which is the one that will play after scene two. (Scene 2 will be the scene that you want to play once.)

    Like this (Change Show Scene Once Played to true).

    4). Save that global attribute to a table. (Tables save data permanently unless you copy a blank master table onto it.)

    5). Now every time a player starts the game scene one will load the rule that you created while reading its conditions and skip over scene 2. As a result scene 2 will only play once.

    I used this technique to create an auto load and save for my latest game. In brief my game saves the last scene that a player plays to a table. When the device is turned of and then turned back on my game automatically pulls data from a table, reads the scene number and automatically skips to the last scene that was played.

    It’s a really simple process.
    Good Luck :)

    Big Smile Games Play Happy!
    Check out our other GameSalad exclusives.

  • KillerPenguinStudiosKillerPenguinStudios Member Posts: 1,291

    +1 for @robertkdale‌!

  • I_AM_BENJII_AM_BENJI USAMember Posts: 40

    thanks, but i am not so familiar with tables so can you explain more

Sign In or Register to comment.