diff --git a/source/Note.hx b/source/Note.hx index 04889d8..d591bbe 100644 --- a/source/Note.hx +++ b/source/Note.hx @@ -185,14 +185,6 @@ class Note extends FlxSprite x += width / 2; - switch (noteTypeCheck) - { - case 'pixel': - noteYOff = -13; - default: - noteYOff = -23; - } - originColor = prevNote.originColor; animation.play(dataColor[originColor] + 'holdend'); // This works both for normal colors and quantization colors @@ -215,6 +207,14 @@ class Note extends FlxSprite prevNote.updateHitbox(); // prevNote.setGraphicSize(); + + switch (noteTypeCheck) + { + case 'pixel': + noteYOff = -13; + default: + noteYOff = -23; + } } } }