On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Is this from loading a previously saved file or when creating a new file?

mev_title_continue_fileselected has some fallback code if the load fails which warps you to a specific spot (indoors area with coordinates set to the center of the lab), cc_intro_startgame is what sets your initial position from a new savefile - this is the same coordinates as the fallback when loading though.

To capture all room transitions in the debug messages you could open room_goto_fade and room_goto_fade_dontdestroy and add a line at the start (before the room is changed), this should point out if there's any room transitions happening so fast you don't get a chance to react:

show_debug_message(tsprintf("Room change % --> %",room_get_name(room),room_get_name(argument0)))

Did you add the debug message that prints the player's position after loading I suggested last time?

(+1)

Yes i did that after your last comment. I ended up just putting the overworld in the code and it spawned me correctly.  Now i got into the lab and everything works.  I may try to re input

the code of the indoors to see what happens.

Great, hopefully things go better this time! And as a rule of thumb, whenever you need to figure out what goes wrong, add more show_debug_message's in the code so you get all the info about what the game's trying to do.

(+1)

THANK YOU SO MUCH!