hold notes position fix

This commit is contained in:
Spel0 2021-08-12 14:00:41 +03:00
parent 44fa55f165
commit 6c1af6722b

View File

@ -143,7 +143,9 @@ class Note extends FlxSprite
animation.add(dataColor[i] + 'holdend', [i + 4]); // Tails 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(); updateHitbox();
default: default:
frames = Paths.getSparrowAtlas('NOTE_assets'); frames = Paths.getSparrowAtlas('NOTE_assets');