Fade Out


Fades to black over the specified duration of time (in seconds). Fade In would typically be called at some point after this function to fade the screen back into view.

Signature:

fade_out(duration)
ArgumentDescriptionTypeRequired
durationLength of fade (in seconds).NumberYes

Example:

fade_out(1);

Results: The screen fades to black over a duration of one second.

Use the Fade Out and Fade In functions to transition between segments of a cutscene or as a way to hide visual modifications to the scene (e.g. removing a character or object).


Editor Node:

Visual Demo: