How To Save Timer When Change To Next Scene, Can Help This?
tanchowyeeiosapp
Member, PRO Posts: 36
Can everybody know how to use "save attribute" for this video timer?
- My question is when I click to second scene, the timer will not repack again, I need the time still continue from scene one.
- Example: when I click change scene button, the time is 01.30, then after I arrive second scene, the time will continue from 01.30 starting.
- I have try use "save attribute" to set it up, but not success, I still newbie on gamesalad, can somebody help this?
- I have upload my gamesald file template here...
- https://mega.co.nz/#!oJgSVDKb!FINWzyjy5jytu3McdBu7tJArXlASRK1zPpboNbGCAhM
Comments
try using game.Time for your timer instead of self.Time.
You mean I need change self.Time to game.Time?
Yep, in your expression, delete self.Time and browse through game attributes and select Time from game attributes, it'll place game.Time in there, I just tried it with your project and it works, There are 2 instances of self.Time that you have to replace with game.Time in the expression.
@tintran , Thank You, it work now
Save attribute is generally used for when you want to save the attributes for next time you load up the game, you can load attribute. Generally it isn't used for from scene to scene saving, for that you can just use game attributes. At least that's my understanding of it.