A SubState that Fades in and closes

Constructor

@:value({ color : 0xff000000, time : 0.5 })new (time:Float = 0.5, ?sprite:FlxSprite, color:Int = 0xff000000)

Creates a new substate that fades in and closes

 *  @param time		the amount of time to fade in
 *  @param sprite	a sprite to show in place of a solid color
 *  @param color	a color to show in place of black

Variables

@:value(function() { })on_complete:Void ‑> Void = function() { }

callback function that is called when fade is complete

Inherited Variables

Inherited Methods