Code of the small_key:
And the door is create with solarus with the option : hero need an item to open the door (small_key)
Code Select
local item = ...
function item:on_created()
item:set_shadow("small")
item:set_can_disappear(false)
item:set_brandish_when_picked(true)
item:set_sound_when_picked("picked_small_key")
end
function item:on_obtaining()
end
And the door is create with solarus with the option : hero need an item to open the door (small_key)