Constructor
Variables
accuracy:Null<Float>
Accuracy gained from pressing this note. From 0 to 1. null means no accuracy is gained.
forceAnim:Null<Bool> = true
Whenever the animation should be forced to play (if it's null it will be forced based on the sprite's data xml, if it has one).
healthGain:Float
The amount of health that'll be gained from pressing that note. If called from onPlayerMiss
, the value will be negative.
Methods
preventLastSustainHit():Void
Prevents the sustain tail (the last one) from being automatically hit when the sustain before it is hit.
preventStrumGlow():Void
Prevents the strum from glowing after this note has been pressed.
preventVocalsMute():Void
Prevents the vocals volume from being muted in case its a parameter of onPlayerMiss
preventVocalsUnmute():Void
Prevents the vocals volume from being set to 1 after pressing the note.
recycle(misses:Bool = true, countAsCombo:Bool = true, countScore:Bool = true, ?showRating:Bool, note:Note, characters:Array<Character>, player:Bool, noteType:String, animSuffix:String, ratingPrefix:String, ratingSuffix:String, direction:Int, score:Int, accuracy:Null<Float>, healthGain:Float, rating:String = "sick", showSplash:Bool = false, numScale:Float = 0.5, numAntialiasing:Bool = true, ratingScale:Float = 0.7, ratingAntialiasing:Bool = true, forceAnim:Bool = true):NoteHitEvent
Inherited Variables
Defined by CancellableEvent
Inherited Methods
Defined by CancellableEvent
preventDefault(c:Bool = false):Void
Prevents default action from occurring.
Parameters:
c | Whenever the scripts following this one should be called or not. (Defaults to |
---|
toString():String
Returns a string representation of the event, in this format:
[CancellableEvent]
[CancellableEvent (Cancelled)]
Returns:
String