Ends the level immediately or after a set delay, then prompts the player to retry the current level. Similar to Win, but the next level button is not shown. If you lose while beating the next level, and the level you lost, it will still make the confetti when you won. (AKA, Win)

Lose
Lose.png
TypeScript block
ColliderNone
FolderGame
Ports
Inputs Before
Outputs After

Notes

This is one of the few scripts that executes only when its Before port is wired.

By default, after all scripts have executed, the losing animation follows with no delay. This delay can be changed by pressing the button on the bottom-right:

 

Pressing the arrows will add or subtract a frame to delay the lose animation, for a maximum of 120 frames or 2 seconds.

Related