Saving The Game

How could I save every attribute after a level is complete. And when you leave the app and come back it is still there? Please help.

Comments

  • ImNiklasImNiklas Member Posts: 103

    Use the behaviour Save Attribute to save them after the level, and the load attribute when you start the app. When you save an attribute you save it as a key, high_score for example. Then it's just to load that same one to the attribute you're using. Simple as that!

  • AA app companyAA app company Member Posts: 73

    Okay thanks! @ImNiklas‌ . If I were to publish the game would the saves I did, lets say I completed the game on creator (as a test), would it star a fresh like I'd want it to or when you downloaded the game on IOS would it have the completed game?

  • ImNiklasImNiklas Member Posts: 103
    edited August 2014

    I'm pretty sure it wouldn't be like that, because I think(!) you save the attributes on the device and not on the game itself and it would just be stupid if they were already saved. But to be honest I haven't published a game yet (saving to $398 first) so I'm not 100% sure.

    If it however where like that, you can create a dummy actor just before publishing the game which changes all the keys to 0, or whatever you want the default be, and then delete the actor and publish it.

  • DuesDues Member Posts: 1,159

    @AA app company said:
    Okay thanks! ImNiklas‌ . If I were to publish the game would the saves I did, lets say I completed the game on creator (as a test), would it star a fresh like I'd want it to or when you downloaded the game on IOS would it have the completed game?

    Its like @ImNiklas‌ says, its saved on the device, so when you have published it and people download it, they play and the attributes get saved.

  • Tiny_IdeasTiny_Ideas Member Posts: 326

    If you find your game has a ton of attributes that need to be saved, maybe in future just use a single table for all your attributes and just reference them through the table, that way all it takes is one "save table" behaviour to save all your attributes.

Sign In or Register to comment.