-
Notifications
You must be signed in to change notification settings - Fork 0
Lua Script API : Callbacks
Called when a script is loaded.
Called after PlayState has loaded.
Called every frame.
Called after onUpdate().
Called when the end fading transition is finished OR when close() is used.
Called every beat hit, in other words 4 times per section.
Called every step hit, in other words 16 times per section.
Called every section hit.
Called when an event is triggered.
Called when a tween is completed.
Called when a timer is completed.
Called when a sound is finished.
Called right before the countdown is started.
Called every tick of the countdown.
counter == 0 -> "Three"
counter == 1 -> "Two"
counter == 2 -> "One"
counter == 3 -> "Go!"
counter == 4 -> Song start. (not really used since you can just use function onSongStart() for this)
Called when the game is paused.
Called when the game is resumed.
Called every frame you are in GameOverSubstate.
Called when you enter GameOverSubstate.
Called when pressing the accept key while in GameOverSubstate.
Called when a note spawned in.
Called when pressing a note.
Called when Opponent hits a note
Called when a note goes offscreen without being pressed.
Called when making a ghost miss, can only be called if Ghost Tapping is disabled.
Called when pressing a note that isn't on screen and you don't miss, can only be called if Ghost Tapping is enabled.
Called when you press a key related to the strums.
Called when you release a key related to the strums.
Called when the next dialogue line starts, dialogueCount starts at 1.
Called when a dialogue line that is currently being typed is skipped, dialogueCount starts at 1.
Called when an event is triggered.
basically onEvent(), but you can trigger it X earlier by using return value;.
Called when a song is started.
Called when a song is finished/starting transition.
Called when the camera is moved to a character's position. target can be boyfriend, gf, or dad.
Called right before rating is recalculated, return Function_Stop for making things like custom rating calculation.
Called when the score updates.