We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3fd99e commit a7cdc14Copy full SHA for a7cdc14
source/objects/playfields/PlayField.hx
@@ -228,7 +228,7 @@ class PlayField extends FlxTypedGroup<FlxBasic>
228
}
229
230
// destroys a note
231
- public function removeNote(daNote:Note){
+ public function removeNote(daNote:Note, ?killTail:Bool = false){
232
daNote.active = false;
233
daNote.visible = false;
234
daNote.kill();
@@ -249,6 +249,7 @@ class PlayField extends FlxTypedGroup<FlxBasic>
249
if (noteQueue[daNote.column] != null)
250
noteQueue[daNote.column].remove(daNote);
251
252
+ if (killTail)
253
if (daNote.unhitTail.length > 0)
254
while (daNote.unhitTail.length > 0)
255
removeNote(daNote.unhitTail.shift());
0 commit comments