save load tutorial download project etc.
scitunes
Member, Sous Chef Posts: 4,047
I created a test dev app. It has one actor that you tap and a game attribbute game.score is changed to game.score + 1 when touched. So you tap it and the number goes up.
A second actor displays game.highscore. I've got a rule that says when score is greater than highscore change highscore to score. The underneath that I put the save behavior with game.highscore keyword highscore. Then outside that whole rule I put the load. I made sure everything was spelled correctly and correct case and everything. Here's the weird thing. In gsviewer7 it works. I tap the first actor and both actors count up by one. Then I restart gsviewer open the app under recent and the number I tapped to is displayed on the high score actor and the score actor is reset to zero - exactly like it should. Then I publish a dev build of it and both reset to zero when you restart it! WTF!
Can someone show me how to do this (it's been a rough day dev wise!)
A second actor displays game.highscore. I've got a rule that says when score is greater than highscore change highscore to score. The underneath that I put the save behavior with game.highscore keyword highscore. Then outside that whole rule I put the load. I made sure everything was spelled correctly and correct case and everything. Here's the weird thing. In gsviewer7 it works. I tap the first actor and both actors count up by one. Then I restart gsviewer open the app under recent and the number I tapped to is displayed on the high score actor and the score actor is reset to zero - exactly like it should. Then I publish a dev build of it and both reset to zero when you restart it! WTF!
Can someone show me how to do this (it's been a rough day dev wise!)
Comments
and what you describe above should be correct.
Bug?