ON LEVEL keyword

Executes a SUB when a new level is loaded. Useful for the HUD to know when a new level starts.

Syntax

ON LEVEL sub

Parameters

  • sub: subroutine to execute (required)

Example

ON LEVEL myFunction

Go back to list of Keywords.