toggle lighting
Problem it solves
You have multiple light sources like torches and campfires in a room, and you need to turn on the multi-light darkness system.
What this block does
Enables or disables the multi-light screen effect where several sprites can cast light into darkness at the same time.
The block
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| on | boolean | true | True to activate darkness and multi-light rendering, false to turn it off. |
Example
multilights.toggleLighting(true)
Add the extension
Add github:felixtsu/pxt-lantern to your project, or open: Import pxt-lantern.