From 6c1af6722b49c866b68d51cbb57ef80950982283 Mon Sep 17 00:00:00 2001 From: Spel0 <75626813+Spel0@users.noreply.github.com> Date: Thu, 12 Aug 2021 14:00:41 +0300 Subject: [PATCH] hold notes position fix --- source/Note.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Note.hx b/source/Note.hx index b642de9..abd6adc 100644 --- a/source/Note.hx +++ b/source/Note.hx @@ -143,7 +143,9 @@ class Note extends FlxSprite animation.add(dataColor[i] + 'holdend', [i + 4]); // Tails } - setGraphicSize(Std.int(width * PlayState.daPixelZoom)); + var widthSize = Std.int(PlayState.curStage.startsWith('school') ? (width * PlayState.daPixelZoom) : (isSustainNote ? (width * 4.5) : (width * PlayState.daPixelZoom))); + + setGraphicSize(widthSize); updateHitbox(); default: frames = Paths.getSparrowAtlas('NOTE_assets');