Contains all callbacks you can add in a Character script.

To add a Character script, create a file here: data/characters/my-char.hx

Methods

beatHit(curBeat:Int):Void

Triggered every beat

create():Void

Triggered after the characters XML has been loaded.

onDance(event:DanceEvent):Void

Triggered everytime the character will dance (play its idle animation).

onGetCamPos(event:PointEvent):Void

Triggered everytime the game tries to get your player's camera position. This event cannot be cancelled.

onPlayAnim(event:PlayAnimEvent):Void

Triggered everytime the game tries to play an animation on your character.

onPlaySingAnim(event:DirectionAnimEvent):Void

Triggered everytime the game tries to play a sing, alt sing or miss animation.

postCreate():Void

Triggered after the character has been entirely loaded.

stepHit(curStep:Int):Void

Triggered every step

update(elapsed:Float):Void

Triggered every frame.