Constructor
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 |
|
---|---|
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 |
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
cameraMode:TransitionCameraMode = TOP
Whether this transition will use a new camera, the top camera, or the default camera
Available since
3.3.0
.