MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Lantern

Create dark levels with dynamic lighting effects like circular lanterns, glowing torches, and directional flashlights.

set breathing enabled

Problem it solves

You want the lantern light to gently pulse and flicker to make a spooky scene feel alive, or turn off pulsing for steady lighting.

What this block does

Enables or disables the pulsating 'breathing' animation that causes the lantern radius to expand and contract smoothly over time.

The block

true block

Parameters

NameTypeDefaultMeaning
enabledbooleantrueTrue to make the light pulse like a flickering flame, or false for steady light.

Example

lantern.setBreathingEnabled(true)

Add the extension

Add github:felixtsu/pxt-lantern to your project, or open: Import pxt-lantern.