Voxel Game Maker

Docs Cookbook

Pushable block puzzle

Place the block. What is it? ▸ Pushable block: the player pushes it a tile by walking into it.

#Without code

  1. Place the block. What is it? ▸ Pushable block: the player pushes it a tile by walking into it.
  2. Place a plate where it should go, with a Trigger (Advanced) When touches / steps on it.
  3. Then Set switch plate_1 to on.
  4. Gate: What is it? ▸ Door, Opens with a switch, Switch name plate_1.
  5. Several plates: use the Lever puzzle pattern (If each Switch is on).
  6. A Reset lever: Send object home (Which tagged, Tag crate).

#Quick code

Where it goes: on the plate, Event: Player enters the world.

wait_until(function()
  return self.touching("crate")
end)
set_switch("plate_1")
play("tick")