Dalal wrote:If you want to make your own save system, you'll probably need to look into Arrays.
Basically, for each puzzle object that you want to save, you'll need to store the object's name/identifier (e.g "Ball"), its x-position, and its y-position. For Each loops will be handy here. You'll want to go through each object, and push its data into the array. Once your array is filled with the correct data, you can save the array data as JSON (that's your "save"). Later, when it comes time to "load" the level, you can load that JSON into an array, then use the imported data to recreate the objects in their saved configuration, using the identifiers to figure out which type of object to create, and the X and Y positions to figure out where to place that object in the world.
That's the basic approach I would take, but there may be a simpler "built-in" approach I am not aware of. If you are not comfortable implementing this idea on your own, I would suggest posting the .capx here so people can help you.
derikvlog wrote:I get it, but I have several identical objects in the scene. The amount of scenarios would be pre-established.
Would have a way of following the player to create the level, I return to the menu without losing one layout?
Users browsing this forum: No registered users and 8 guests