Voxel Game Maker

Docs Cookbook

Secret area

Make the fake wall Walk-through.

#Without code

  1. Make the fake wall Walk-through.
  2. Behind it, a Trigger (Advanced) When touch, Only once, Then Show banner ("Secret found!"), Play sound and Add to counter (Counter secrets).
  3. Optional: Unlock achievement.

#Quick code

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

if not switch_on("secret_1") then
  set_switch("secret_1")
  add("secrets")
  banner("Secret found!")
end