Codename LogoCodename Logo

funkin.backend.scripting.events.GameOverCreationEvent

APIWiki

CANCEL this event to prevent default behaviour!

Constructor

Variables

bpm:Float

character:String

lossSFX:String

player:Bool

retrySFX:String

x:Float

y:Float

Methods

View in GitHub

recycle(x:Float, y:Float, character:String, player:Bool, gameOverSong:String, bpm:Float, lossSFX:String, retrySFX:String):GameOverCreationEvent

Inherited Variables

Defined by CancellableEvent

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

Additional data if used in scripts

Inherited Methods

Defined by CancellableEvent

View in GitHub

@:value({ c : false })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