saving permanently scores

i have make this
game.score=actor1.position.x
Rule:
game.score>game.highscore
Change Attribute game.highscore=game.score
save attribute
game.highscore
why if i close my app
and open again
load attribute
game.highscore shows 0
inside the game, i move betwen scenes and function ok, score and highscore
im doing something wrong
thanks in advance
game.score=actor1.position.x
Rule:
game.score>game.highscore
Change Attribute game.highscore=game.score
save attribute
game.highscore
why if i close my app
and open again
load attribute
game.highscore shows 0
inside the game, i move betwen scenes and function ok, score and highscore
im doing something wrong
thanks in advance
Comments
Score =integer (i think would be real to)
HighScore =integer (i think would be real to)
and use the same name of my variable as key name,
example......
save attribute
game.HighScore key: HighScore
************************************************************
load attribute
key:HighScore game.HighScore
and you can test in the creator, only you need to load the value in diferent scene, and move to that scene without close the app, dobleclicking in the scene.
but do the same as in the viewer,
before that changes i make.... don't work in the creator, and don't work in viewer.
im agree with you about that maybe don't really save and load, but as testing without device, can help a little.
i buy a mac and ipod, 2 weeks ago, i never been used one, i read posts before buy about 2 months, watch cookbook, 2 or 3 times each video, and im developing my first game, and im very glad with the comunity here, and with the work of Sous Chef, im trying to help a litter to.