Constructor
Variables
notes:NoteGroup
Group of all of the notes in this strumline. Using forEach on this group will only loop through the first notes for performance reasons.
onHit:FlxTypedSignal<NoteHitEvent ‑> Void> = new FlxTypedSignal<NoteHitEvent>()
Signal that triggers whenever a note is hit. Similar to onPlayerHit and onDadHit, except strumline specific.
To add a listener, do
strumLine.onHit.add(function(e:NoteHitEvent) {});
onMiss:FlxTypedSignal<NoteMissEvent ‑> Void> = new FlxTypedSignal<NoteMissEvent>()
Signal that triggers whenever a note is missed. Similar to onPlayerMiss, except strumline specific.
To add a listener, do
strumLine.onMiss.add(function(e:NoteMissEvent) {});
onNoteDelete:FlxTypedSignal<SimpleNoteEvent ‑> Void> = new FlxTypedSignal<SimpleNoteEvent>()
Signal that triggers whenever a note is being updated. Similar to onNoteUpdate, except strumline specific.
To add a listener, do
strumLine.onNoteUpdate.add(function(e:NoteUpdateEvent) {});
onNoteUpdate:FlxTypedSignal<NoteUpdateEvent ‑> Void> = new FlxTypedSignal<NoteUpdateEvent>()
Signal that triggers whenever a note is being updated. Similar to onNoteUpdate, except strumline specific.
To add a listener, do
strumLine.onNoteUpdate.add(function(e:NoteUpdateEvent) {});
strumAnimPrefix:Array<String> = ["left", "down", "up", "right"]
TODO: Write documention about this being a variable that can help when making multi key
Methods
createStrum(i:Int, ?animPrefix:String):Strum
Creates a strum and returns the created strum (needs to be added manually).
Parameters:
i | Index of the strum |
|---|---|
animPrefix | (Optional) Animation prefix ( |