-
Notifications
You must be signed in to change notification settings - Fork 196
Events
Wizard edited this page Aug 23, 2023
·
36 revisions
Events called through functions, should be simple? i think idk man i'm not even close to done writing all this lmaoo
NOTE: all events can be cancelled by using event.cancel();
EXCEPT for when you are using function onGetCamPos()
.
Argument | Type | Description |
---|---|---|
amount | int | Amount lmao |
Argument | Type | Description |
---|---|---|
position | FlxPoint | Final camera position. |
strumLine | StrumLine | Currently focused strumline. |
focusedCharacters | int | Number of focused characters. |
Argument | Type | Description |
---|---|---|
swagCounter | int | At which count the countdown is. Normally goes 0-1-2-3-4 unless PlayState.instance.introLength is changed. |
volume | float | Volume at which the intro countdown sound will play. |
soundPath | string | Path of the intro sound that'll be played. |
spritePath | string | Path to the sprite path that'll be shown. |
scale | float | Scale of the sprite. |
antialiasing | bool | Whenever antialiasing is enabled or not. |
sprite | FlxSprite | Created sprite, only available in onPostCountdown . |
spriteTween | FlxTween | Created tween for the sprite, only available in onPostCountdown . |
sound | FlxSound | Created sound, only available in onPostCountdown . |
Argument | Type | Description |
---|---|---|
danced | bool |
Argument | Type | Description |
---|---|---|
animName | string | Default animation that will be played. |
direction | int | In which direction the animation will be played. |
suffix | string | The suffix of the animation (ex: "-alt" ) - Defaults to "" . |
context | PlayAnimContext | Context of the animation. Is either equal to SING or MISS . |
reversed | bool | Whenever the animation will play reversed or not. |
frame | int | At what frame the animation will start playing. |
animName | string | Default animation that will be played. |
force | bool | Whether to force the animation. |
unfinished obv lmao