Skip to content

Loading screens

Mikolka edited this page Apr 13, 2025 · 1 revision

Loading screens

You can add a custom loading screen to your mod in mods/your-mod/data/LoadingScreen.hx

The only available callback is onCreate(), after which the script is destroyed (but not the sprites you make)

Variables

getLoaded()

When called, this function returns a number of currently loaded assets

getLoadMax()

When called, this function returns a number of total assets to load.

barBack

A sprite of the background for the loading bar.

bar

A sprite of the loading bar.

Clone this wiki locally