Constant Customization?


  • Posts: 24
I couldn't find a thread already on this, but if there is, please tell me.

Anyway,in the game I'm currently working on, I'm aiming to include an element of customization, more specifically of the environment. The idea I'm going for is similar to a farmville or minecraft style sort of thing, where the player can place or take away blocks and items. The issue I'm having is that when the game switches in between scenes , the game will lose the positioning of the blocks. The only way I could think of doing this would be to save the coordinates of each block as a part of (giant) game variable array, and have them save when the scene is left, and then load and recreate the blocks as the scene comes back. Is there a better way to do this? That just seems like one ridiculous mess.

Thanks for any help!


  • *
  • Posts: 2764
Yes, arrays.

I think I have uploaded a behavior called "Save Actors" on Forge 2.0, it might still be there. It does what you want, hopefully.
My Stencyl resources are available here:
Cutscenes, RPG Elements, Particles, Map System and many more.