How do i do a checklist
beefy_clyro
Member Posts: 5,394
hi. basically i have a checklist which is numbered, the checklist relates to another part of the app that comes with the description for that number. On the checklist i would like them to be able to touch the screen and it spawns an actor (maybe a tick in a check box). How could i make that save so next time they start the app it remembers what has been checked? thanks in advance
Comments
.........
To create one tick box, like a toggle button.
.........
Create an integer attribute 'game.tickbox1'
On your button, make a rule,
if touch is pressed,
change attribute 'game.tickbox1' to (game.tickbox+1)%2
........
To show the tick:
........
If 'game.tickbox1' = 1
Change image to tick
if 'game.tickbox1' = 0
change image to blank.
To save the tickbox so it remembers after closing the app.
Add a rule to the 'if button touched'
save attribute 'game.tickbox1' to key 'tickbox1'
.........
Then on the first screen of your game, normally the company logo splash screen,
have a rule,
load attribute, key 'tickbox1' = 'game.tickbox1'