-
Saving objects in a Grid
Ok I have a grid/horizontal squares on the play area. You can click in each square to create an object. In the first horizontal row there are green X's. In the second row of squares white X's and so on. If I have placed let's say...5 green X's and 3 white X's...in the area. How can i make mmf 2 remember the squares where i put them the next time I open the program? the X's are not unique, it's one active for the green X that is created and one other active for the white. So it means there are multiple squares with the same active object....Do I make any sense? Ask me if you need more info. I want to to be able to save the X's i put in those squares :)
-
There are a few examples available that would show you how to achieve this. The "Level Editor" example here: http://www.castles-of-britain.com/mmfexamples-k.htm should cover it.
You essentially need to save the data into an array and then process the array to load up the saved data on start.