Save and Load Quetion

Hi All,
I want to ask about save and load work.
let say I have Scene 1, 2, 3, 4, 5
1. is home
2. gameplay
3. store
4. in App
5. gameover
So in that case I have 2 actors need to be save and load (let say Gems and Highscore with custom fonts)
1. Where I put save & load att for gems ? Which one behaviours I use ? Constrains att or change att ?
2. Same as point 1 but now its actor highscore, but of course highscore cant buy anything on scene 3 (store)
Thanks anyway,
L
I want to ask about save and load work.
let say I have Scene 1, 2, 3, 4, 5
1. is home
2. gameplay
3. store
4. in App
5. gameover
So in that case I have 2 actors need to be save and load (let say Gems and Highscore with custom fonts)
1. Where I put save & load att for gems ? Which one behaviours I use ? Constrains att or change att ?
2. Same as point 1 but now its actor highscore, but of course highscore cant buy anything on scene 3 (store)
Thanks anyway,
L
Comments
Change "game.gems" to "game.gems"+1
Then save "game.gems" - - - Key : totalgems
for high score its most common to save it when the level is over , in the "game over" or "game complete" scene
Change "game.high score" TO "game.Current session score"
Then save "game.Current session score" - - - Key : highscore
Now for loading them , in your initial scene , when the game starts put the load behaviors in one of the actors and load those attribute ..
Cheers
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
okey I got it, but in scene store, let say I wanna buy some item after the game..
like if I have 10 gems and buy pistol for 5 gems, so I Change.game.gems.. to game.gems-5 is that right ?
sould i put save attr after that ? or load att before that ? Because, after game over, I put "store button" then change scene into store, no to initial scene..
Thanks,
L
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Put load behavior only in the initial scene of your game ..
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS