Constructor
Variables
handledMiss:Bool
This is true if the PlayState has performed the logic for missing this note. Subtracting score, subtracting health, etc.
hasBeenHit:Bool = false
Set this flag to true when hitting the note to avoid scoring it multiple times.
hasMissed:Bool
This is true if the note is later than 10 frames within the strumline, and thus can't be hit by the player. It will be destroyed after it moves offscreen. Managed by PlayState.
read onlyisHoldNote:Bool
Whether this note is a hold note. This is true if the length is greater than 0.
kind:Null<String>
An extra attribute for the note. For example, whether the note is an "alt" note, or whether it has custom behavior on hit.
length:Float
The length for which the note should be held, in milliseconds. Defaults to 0 for single notes.
mayHit:Bool
This is true if the note is within 10 frames of the strumline, and thus may be hit by the player. Managed by PlayState.
noteData:SongNoteData
The note data associated with this note sprite. This is used to store the strum time, length, and other properties.
scoreable:Bool = true
If this note kind is scoreable (i.e., counted towards score and accuracy) Only accessible in scripts Defaults to true
tooEarly:Bool
This is true if the note is earlier than 10 frames within the strumline. and thus can't be hit by the player. Managed by PlayState.
Methods
getParam(name:String):Null<Dynamic>
Retrieve the value of the param with the given name
Parameters:
name | Name of the param |
|---|
Returns:
Null