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

GM:S 1.4 Load game in other room

Discussion in 'Programming' started by Nerozeau, Feb 22, 2019.

  1. Nerozeau

    Nerozeau Member

    Jun 5, 2017
    Hello everyone, I try to make something but I don't no if it's possible.

    I would like to start the backup but without the teleportation in the room in which I was at the time of this backup.

    Thanks for your answer^^.
  2. Mert

    Mert Member

    Jul 20, 2016
    It really depends what kind of implementation you want.

    You can create a global variable which holds an array that holds instance's positions.

    global.objs[0,0] = 20; //x value of instance NO : 0
    global.objs[0,1] = 30; //y value
    global.objs[1,0] = 50; //x value of instance NO : 0
    global.objs[1,1] = 20; //y value
    Then you can access to these values with

    x = global.objs[1,0];
    y = global.objects[1,1];
    This is not the most-beautiful-looking one, but does the job. Need more context about your game so that I can say something more.

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