Docs Cookbook
Dash
Open Game Settings ▸ Combat and tick Dodge roll.
#Without code
- Open Game Settings ▸ Combat and tick Dodge roll.
- Set Dodge cost (stamina per dash) and Dodge speed.
- Try it: press ▶ Play and press Ctrl while moving: the player dashes and is safe for a moment.
#Quick code
Where it goes: a level script, Event: Player enters the level; Q dashes, once a second.
local ready = 0
while true do
ready -= dt()
if key_pressed("Q") and ready <= 0 then
launch("forward", 16)
play("zap")
ready = 1
end
wait(0)
end
Get an email when Voxel Game Maker launches
It's coming to Steam with a launch discount. One email on launch day, the odd progress update, nothing else.