Voxel Game Maker

Docs Cookbook

Save point

Open Game Settings ▸ Saving and make sure Players can save is ticked.

#Without code

  1. Open Game Settings ▸ Saving and make sure Players can save is ticked.
  2. Place a Lamp post (any model works). Leave What is it? at Scenery.
  3. Switch to Advanced. With it picked, click + Add behavior ▸ Logic ▸ Trigger.
  4. Set When to Touched.
  5. Under Then, click + Add action ▸ Save the game and type its Message (Game saved).
  6. Try it: press ▶ Play, touch the lamp, then quit to the title: Continue starts you there.

A Checkpoint also autosaves when touched; a save point is for games that save only where you choose.

#Quick code

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

save_game()
heal(100)
popup("Game saved")