Voxel Game Maker

Docs Cookbook

Health pickup

Place a heart. What is it? ▸ Pickup, Type Heart, and Restores health.

#Without code

  1. Place a heart. What is it? ▸ Pickup, Type Heart, and Restores health.
  2. In Advanced: Pickup with Restores HP (e.g. 25) and Counted unticked, so it doesn't show in the item counter.

#Quick code

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

heal(25)
play("powerup")
self.remove()