I'm making a space rpg game, and the player must travel to different locations and complete certain tasks.
I have a gamemap layout that has about 30000 tiles, and each tile has it's own location variable number (e.g location=2,location=2324, etc.) and type number (comets=6, planet=9).
whenever the players wants to go to a certain location, it will take the player to the location layout based on the sprite's location number.
Suppose the player wants to land on location#1543 and it's the player first time landing on this location.
I know how to generate elements in this new location, but I don't know how to save all the elements positions, angles, instance variables, etc, so that when the player decides to visit this location again, the layout can load all the elements/variables that were inside this layout.
Any ideas on how I can program this?
Here is a capx :
https://www.dropbox.com/s/gbdfr94oyy8y7 ... .capx?dl=0