Voxel Game Maker

Docs Cookbook

Equip from the skillbar

Items the player gets go on the skillbar; keys 1 to 8 (or the wheel)

#Without code

  1. Items the player gets go on the skillbar; keys 1 to 8 (or the wheel) pick the one in hand.
  2. To keep the hand fixed in a scene, use the action Lock / unlock skillbar.

#Quick code

Where it goes: Event: Player enters the world.

give("Torch")
put_on_bar("Torch", 2)
select_slot(2)
if held() == "Torch" then player_light("torch") end