M
mamacato
Guest
I thought it would be easier to ask using a video. The gist is that I placed obj_player physically in the rooms. So when I warp from one room to another, I always warp to where I placed obj_player. I want to have more control over this.
In this example, I'm warping from an apartment to a balcony. Then I enter an apartment one floor above through a window, but I want to leave this other apartment through the balcony. It will of course bring me back to the balcony of the lower floor apartment because that is where obj_player has been placed in the room.
Thanks for the help!
EDIT: I forgot to mention, that I tried using
but I think that might just mean the previous room in the tree? I don't know. Either way, that didn't work.
In this example, I'm warping from an apartment to a balcony. Then I enter an apartment one floor above through a window, but I want to leave this other apartment through the balcony. It will of course bring me back to the balcony of the lower floor apartment because that is where obj_player has been placed in the room.
Thanks for the help!
EDIT: I forgot to mention, that I tried using
Code:
if room_previous(rm_3rd_floor_apartment)
{
o_player.x = new_location;
o_player.y = new_location;
}
Last edited: