tutorial only once
http_gamesalad
Member Posts: 1,340
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
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.
www.mbstudios.co | Free Stuff
@MattButlerStudios so showTutorial is a boolean and I should leave it unchecked?
Yes, it should be checked. Then when the tutorial is complete the attribute should be changed to false and saved.
@MattButlerStudios @Rabid Parrot thanks worked perfect
Glad we could help!
www.mbstudios.co | Free Stuff