Load and save attribute for next stage?
lets say my character went to next level and i want the game automatic save when he passed the level. also i want to load the next level when i hit continue in the title section. how can i do that?
thanks
clock
thanks
clock
Best Answer
-
tatiang Posts: 11,949
If you want to save to the device, use the Save Attribute behavior. You can save any attribute you like, so it could be as simple as just game.CurrentLevel (integer) or you could save ten different attributes that have the level name, the amount of gold collected, hit points, laps completed, or whatever else you want. You use one Save Attribute behavior for each attribute you wish to save and you save it in a key (usually with the same name as the attribute).
As far as loading the next level goes, this is usually done with a Change Scene behavior. What did you have in mind?New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User