Codename LogoCodename Logo

funkin.backend.scripting.events.CountdownEvent

APIWiki

Constructor

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.

Methods

View in GitHub

recycle(swagCounter:Int, volume:Float, soundPath:String, spritePath:String, scale:Float, antialiasing:Bool, sprite:FlxSprite, spriteTween:FlxTween, sound:FlxSound):CountdownEvent

Inherited Variables

Defined by CancellableEvent

data:Dynamic = { }

Additional data if used in scripts

Inherited Methods

Defined by CancellableEvent

View in GitHub

preventDefault(c:Bool = false):Void

Prevents default action from occurring.

Parameters:

c

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

View in GitHub

toString():String

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

Returns:

String