How to Make a Warp or Teleporter in Game Maker 8

TIME : 2016-01-07
How to Make a Warp or Teleporter in Game Maker 8

If you mean a teleporter in Game Maker 8, it is fairly simple to set up. In the collision event with your entrance object, use code like this:


Collision with obj_teleport_entrance:
x = obj_teleport_exit.x; y = obj_teleport_exit.y;

This creates a one-way portal that instantly moves the player to the exit. To let the character travel back, place a second entrance near the exit and link the two so each knows its destination — that part is a bit more involved.

Full linked portals like in the Portal games are much more complex. But if you just want the screen to wrap around at the edges, there is a simple drag-and-drop action for that.