Constructor
Variables
noteAngle:Null<Float> = null
The direction of the notes. If you don't want angle of the strum to interfere with the direction the notes are going, you can set noteAngle to = 0, and then you can use the angle of the strum without it affecting the direction of the notes.
Methods
inlinegetNotesAngle(?note:Note):Float
Gets the angle of the notes. If you don't want angle of the strum to interfere with the direction the notes are going, you can set noteAngle to = 0, and then you can use the angle of the strum without it affecting the direction of the notes.
Parameters:
note | (Optional) The note |
---|
inlinegetScrollSpeed(?note:Note):Float
Gets the scroll speed of the notes.
Parameters:
note | (Optional) The note |
---|
playAnim(anim:String, force:Bool = true):Void
Plays an animation.
Parameters:
anim | The animation name |
---|---|
force | Whenever the animation should be forced to play |
updateNotePosition(daNote:Note):Void
Updates the position of a note.
Parameters:
daNote | The note |
---|
updatePlayerInput(pressed:Bool, justPressed:Bool, justReleased:Bool):Void
Updates the animation state based on the player input.
Parameters:
pressed | Whenever the player is pressing the button |
---|---|
justPressed | Whenever the player just pressed the button |
justReleased | Whenever the player just released the button |