From a033c2cfa17f2f0d6b796332b4656ef0b8918abc Mon Sep 17 00:00:00 2001 From: TheZoroForce240 <86524550+TheZoroForce240@users.noreply.github.com> Date: Wed, 28 Aug 2024 11:46:42 +0100 Subject: [PATCH] change this value to not be hardcoded --- source/funkin/game/Strum.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/game/Strum.hx b/source/funkin/game/Strum.hx index b411cf5b..41bf72b5 100644 --- a/source/funkin/game/Strum.hx +++ b/source/funkin/game/Strum.hx @@ -98,12 +98,12 @@ class Strum extends FlxSprite { private inline function updateNotePos(daNote:Note) { if (daNote.strumRelativePos) { daNote.setPosition((this.width - daNote.width) / 2, (daNote.strumTime - Conductor.songPosition) * (0.45 * CoolUtil.quantize(getScrollSpeed(daNote), 100))); - if (daNote.isSustainNote) daNote.y += N_WIDTHDIV2 * (height / 112); + if (daNote.isSustainNote) daNote.y += N_WIDTHDIV2 * (height / Note.swagWidth); } else { var offset = FlxPoint.get(0, (Conductor.songPosition - daNote.strumTime) * (0.45 * CoolUtil.quantize(getScrollSpeed(daNote), 100))); var realOffset = FlxPoint.get(0, 0); - if (daNote.isSustainNote) offset.y -= N_WIDTHDIV2 * (height / 112); + if (daNote.isSustainNote) offset.y -= N_WIDTHDIV2 * (height / Note.swagWidth); if (Std.int(daNote.__noteAngle % 360) != 0) { var noteAngleCos = FlxMath.fastCos(daNote.__noteAngle / PIX180);