Constructor

@:value({ antialiasing : true, volume : 1, scale : 1 })new(swagCounter:Int, spritePath:String, soundPath:String, scale:Float = 1, volume:Float = 1, antialiasing:Bool = true)

Variables

antialiasing:Bool

Whenever antialiasing is enabled or not.

scale:Float

Scale of the sprite.

sound:FlxSound

Created sound, only available in onPostCountdown

soundPath:String

Path of the intro sound that'll be played.

sprite:FlxSprite

Created sprite, only available in onPostCountdown

spritePath:String

Path to the sprite path that'll be shown.

spriteTween:FlxTween

Created tween for the sprite, only available in onPostCountdown

swagCounter:Int

At which count the countdown is. Normally goes 0-1-2-3-4 unless PlayState.instance.introLength is changed.

volume:Float

Volume at which the intro countdown sound will play.

Inherited Variables

Defined by CancellableEvent

@:value({ })data:Dynamic = { }

Additional data if used in scripts

Inherited Methods

Defined by CancellableEvent

@:value({ c : false })preventDefault(c:Bool = false):Void

Prevents default action from occuring.

Parameters:

c

Whenever the scripts following this one should be called or not. (Defaults to true)

toString():String

Returns a string representation of the event, in this format: [CancellableEvent] [CancellableEvent (Cancelled)]

Returns:

String