• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML how to store multiple kinds of instances with their x and y coordinate

F

fireair

Guest
basically what I'm trying to do is make it so that when the player presses Z, each instance of every object parented to a parent object is stored but is no longer in the room and a new setup is drawn, and when the player presses Q, the new setup is stored and the old one is shown and i need to be able to do this for multiple setups. I know this is probably asking a lot but does anyone know how to do this?

I already have it able to draw the setup randomly btw.
 
T

Taddio

Guest
You want it stored forever, or just while the program is running?
If 1) Maybe look at saving to an ini
Else if 2) you could make a global ds_grid, containing instance and position.

If you go the .ini route, you could have a different section per room, that'd make it clearer to read and edit.
 
Top