1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

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

Discussion in 'Programming' started by fireair, Mar 4, 2019.

  1. fireair

    fireair Member

    Joined:
    Jun 16, 2018
    Posts:
    19
    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.
     
  2. Taddio

    Taddio Member

    Joined:
    Nov 16, 2018
    Posts:
    463
    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.
     
  3. fireair

    fireair Member

    Joined:
    Jun 16, 2018
    Posts:
    19
    okay thanks i think option 2 will work
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice