HI , everyone! I make a help scene and a i want show just once ,when you start the game ? Is it possible?
Tokosbex,
Yes you can!
Just create (and store) a variable…
-- Step 1. Load a persistent boolean variable -- Let's call it helpShown -- load variable from storage here -- Step 2. Check if helpShown == false then helpShown = true composer.gotoScene("myHelpScene") end
There are many ways to save and recall a persistent variable. Since I wrote the plugin GBC Data Cabinet, I prefer that method.
You can grab that from the Plugins Store for free.
–John
sorry but i dont understand how load a persistent variable?
i m resolve problem thanks!
Tokosbex,
Yes you can!
Just create (and store) a variable…
-- Step 1. Load a persistent boolean variable -- Let's call it helpShown -- load variable from storage here -- Step 2. Check if helpShown == false then helpShown = true composer.gotoScene("myHelpScene") end
There are many ways to save and recall a persistent variable. Since I wrote the plugin GBC Data Cabinet, I prefer that method.
You can grab that from the Plugins Store for free.
–John
sorry but i dont understand how load a persistent variable?
i m resolve problem thanks!