Hi,
The "Development" section is the right place to post your code and ask for help.
Welcome on the forum
The "Development" section is the right place to post your code and ask for help.
Welcome on the forum

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menufunction my_switch:on_activated()
chest_1:set_enabled(true)
end
function map:on_started()
self.night_overlay = sol.surface.create() -- Create an empty surface of the size of the screen.
self.night_overlay:set_opacity(192) -- Make it semi-transparent (0: transparent, 255: opaque).
self.night_overlay:fill_color({0, 0, 64}) -- Fill it with dark blue to obtain a night effect.
end
function map:on_draw(destination_surface)
self.night_overlay:draw(destination_surface)
end