tutorial only once

http_gamesaladhttp_gamesalad Member Posts: 1,340
edited October 2014 in Working with GS (PC)

Hello I have this endless runner and I want to show you how to play like a little tutorial but I want it to show only once. So that means if you close the app & open it back up the tutorial won't show again. Like temple run when you first start it shows you how to play and then if you close it & open back it up it doesn't show you again.

Comments

  • MattButlerStudiosMattButlerStudios Member Posts: 486

    1) Create an attribute called "showTutorial"

    2) Place a rule in the button that is at the end of your tutorial (probably says "exit" or "end tutorial") and say "when touch is pressed change attribute game.showTutorial to false"

    3) In the beginning of your game where the tutorial is triggered, set a parameter that only allow the tutorial to be activated if showTutorial is true

    4) Don't forget to make save attribute rules for game.showTutorial. This way the state can be saved when the app is closed.

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @MattButlerStudios‌ so showTutorial is a boolean and I should leave it unchecked?

  • RabidParrotRabidParrot Formally RabidParrot. Member Posts: 956

    Yes, it should be checked. Then when the tutorial is complete the attribute should be changed to false and saved.

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @MattButlerStudios @Rabid Parrot thanks worked perfect :)

  • MattButlerStudiosMattButlerStudios Member Posts: 486

    Glad we could help! :)

Sign In or Register to comment.