Voxel Game Maker

Docs Cookbook

Hazards (spikes, lava, falling out)

Spikes and lava: add Hurts player and set Damage and Knockback.

#Without code

  1. Spikes and lava: add Hurts player and set Damage and Knockback.
  2. Falling out: under the level, place a wide floor with a Trigger (Advanced), When touch, Then Hurt player and Teleport player back up (or put a Checkpoint before the gap).

#Quick code

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

hurt(20)
add_status(player, "burn", 3)
knockback(player, 6)