Codename LogoCodename Logo

funkin.backend.scripting.events.StrumCreationEvent

APIWiki

Constructor

Variables

animPrefix:String

Animation prefix (left = arrowLEFT, left press, left confirm).

player:Int

s Player ID

sprite:String = "game/notes/default"

Sprite path, in case you only want to change the sprite.

strum:Strum

The strum that is being created

strumID:Int

Strum ID, for the sprite.

Methods

View in GitHub

cancelAnimation():Void

Cancels the animation that makes the strum "land" in the strumline.

View in GitHub

recycle(strum:Strum, player:Int, strumID:Int, animPrefix:String, sprite:String = "game/notes/default"):StrumCreationEvent

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