Voxel Game Maker

Docs Cookbook

Teleporter

Place two pads. Give the second a Script name (Properties ▸ Object): `pad_b`.

#Without code

  1. Place two pads. Give the second a Script name (Properties ▸ Object): pad_b.
  2. First pad: What is it? ▸ Teleporter; To (Script names, comma-separated) pad_b.
  3. Tick Step on it (no E needed), or leave it on E with an E prompt.
  4. Several names (pad_b, pad_c) pick one at random, or let the player choose (With several).
  5. To another level: What is it? ▸ Exit instead.

#Quick code

Where it goes: on the pad, Event: Player touches / steps on it.

local to = object("pad_b")
player.teleport(to.x, to.y + 1, to.z)
play("zap")