Docs Cookbook
Locked door and key
Place the key model. What is it? ▸ Pickup, Type Key (its item is Key).
#Without code
- Place the key model. What is it? ▸ Pickup, Type Key (its item is Key).
- Place the door. What is it? ▸ Door, set to need the key.
- In Advanced this is an Opening door with Opens when E, Needs item
Key, tick Uses up the item, and a Locked message ("It's locked."). - Pick Opens by (slide up, swing…) and Seconds.
#Quick code
Where it goes: on the door, Event: Player presses E.
if has("Key") >= 1 then
take("Key")
self.move(0, 3, 0, 1)
else
popup("It's locked.")
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.