Pitfall to different map.

I am trying to make a tower with pitfalls that drop the player down a level. I am not having luck with getting it to move you to a new map but keeping your same x,y coordinates. Does anyone know how I can do that?
You can store the player's current Map X/Y in variables, then transfer to variable coordinates:
  • Store X/Y: Control Variables -> Set -> Game Data -> Character -> Map X/Y.
  • Store map ID: Control Variables -> Set -> Constant -> (target map ID).
  • Then: Transfer Player -> Designation with variables.
E.g.

◆Control Variables:#0001 Player X = Map X of Player ◆Control Variables:#0002 Player Y = Map Y of Player ◆Control Variables:#0003 Target Map = 12 ◆Transfer Player:{Target Map} ({Player X},{Player Y})
You can store the player's current Map X/Y in variables, then transfer to variable coordinates:
  • Store X/Y: Control Variables -> Set -> Game Data -> Character -> Map X/Y.
  • Store map ID: Control Variables -> Set -> Constant -> (target map ID).
  • Then: Transfer Player -> Designation with variables.
E.g.

◆Control Variables:#0001 Player X = Map X of Player
◆Control Variables:#0002 Player Y = Map Y of Player
◆Control Variables:#0003 Target Map = 12
◆Transfer Player:{Target Map} ({Player X},{Player Y})

Thank you so much that worked.

Original thread: https://forums.rpgmakerweb.com/threads/pitfall-to-different-map.172644/