Warp between rooms puts me in Coordinates before transition..

Discussion in 'Programming' started by Adam Mansour, May 21, 2019.

  1. Adam Mansour

    Adam Mansour Member

    Joined:
    May 14, 2019
    Posts:
    20
    As I said in the title.. I cant warp to a level because before this happens, the warp instance will set me to the coordinates in the room Im currently in. (intended is that the warp sets me there after I went to the next room)
    I tried putting the coordinates into the End Step, hoping that this would happen after the Begin Step finished but the result is the same. I put the codes for the Object in the Spoilers.
    targetX = 0;
    targetY = 0;
    target = room;
    if (place_meeting(x,y,oPlayer))
    {
    with (oPlayer)
    {
    if (hascontrol)
    {
    hascontrol = false;
    room_goto(target);
    }
    }
    }
    if (place_meeting(x,y,oPlayer))
    {
    oPlayer.x = targetX;
    oPlayer.y = targetY;
    }
     
  2. TheSly

    TheSly Member

    Joined:
    Jan 16, 2017
    Posts:
    989
    Please only create one thread for your topic. I wrote a long answer for you in the other thread, so best to just ask any questions about it in there.
     
  3. Adam Mansour

    Adam Mansour Member

    Joined:
    May 14, 2019
    Posts:
    20
    really? I didnt see any.. lemme check again.. I made this post btw because I thought maybe people wont like having to watch an 8 minute video.. thank you anyways.
     

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