Voxel Game Maker

Docs Cookbook

Sword combo

Make a Sword item and equip it as weapon (Items tab).

#Without code

  1. Make a Sword item and equip it as weapon (Items tab).
  2. Game Settings ▸ Combat: tick Combos (quick swings chain; the last one knocks back) and set Swings in a combo.

#Quick code

Where it goes: on a sword pickup, Event: Player touches / steps on it.

give("Sword")
put_on_bar("Sword", 1)
select_slot(1)
self.remove()