end Screen Effect

Stop a built-in effect from displaying on the screen.

500start screenconfettieffect
JavaScript
(method) effects.ScreenEffect.startScreenEffect(duration: number, particlesPerSecond: number): void;
Python
(method) effects.ScreenEffect.start_screen_effect(duration: number, particlesPerSecond: number): None

There are several built-in effects you can show on the screen. This will stop the effect you choose if it’s currently displaying. In the Blocks editor, you can select an effect from a list in the block.

Example

Start the blizzard and confetti effects on the screen. Wait 5 seconds and then stop only the confetti effect.

5000end screenconfettieffectpausemsstart screenconfettieffectstart screenblizzardeffecton start

See also

start screen effect