sm.gui.startFadeToBlack

Fades the screen to black and back after timeout.

Kind: Function

Environments: Game

Game

sm.gui.startFadeToBlack( duration, timeout )

Open the full Game reference

Availability: Client only

Parameters:

Name Type Description
duration number Animation duration
timeout number Seconds until the fade fades back