Constructor

@:value({ cameraMode : TOP, duration : 1.0, color : FlxColor.WHITE, type : FADE })new(type:TransitionType = FADE, color:FlxColor = FlxColor.WHITE, duration:Float = 1.0, ?direction:FlxPoint, ?tileData:Null<TransitionTileData>, ?region:FlxRect, cameraMode:TransitionCameraMode = TOP)

Used to define a transition for FlxTransitionableState

Parameters:

type

NONE, TILE, or FADE

color

The color of the transition

duration

How long the transition will take

direction

Add a "wipe" effect to various transition styles

tileData

The graphic to tile, when TILE type is used

region

The area of the screen to display the transition

cameraMode

Whether this transition will use a new camera, the top camera, or the default camera

Variables

@:value(TOP)cameraMode:TransitionCameraMode = TOP

Whether this transition will use a new camera, the top camera, or the default camera

Available since

3.3.0

.

color:FlxColor

The color of the transition

direction:FlxPoint

Add a "wipe" effect to various transition styles

@:value(1.0)duration:Float = 1.0

How long the transition will take

region:FlxRect

The area of the screen to display the transition

tileData:TransitionTileData

The graphic to tile, when TILE type is used

tweenOptions:TweenOptions

Used to override the options of the tween controlling this transtition

type:TransitionType

NONE, TILE, or FADE

Methods