Codename LogoCodename Logo

funkin.backend.scripting.events.PlayAnimEvent

APIWiki

Constructor

Variables

animName:String

Name of the animation that's going to be played.

context:PlayAnimContext

Context of the animation

force:Null<Bool>

Whenever the animation will be forced or not (if it's null it will be forced based on the sprite's data xml, if it has one).

reverse:Bool

Whenever the animation will play in reverse or not

startingFrame:Int = 0

The frame at which the animation will start playing

Methods

View in GitHub

recycle(animName:String, force:Null<Bool>, reverse:Bool, startingFrame:Int = 0, context:PlayAnimContext):PlayAnimEvent

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