From 623ac099504758bc4d040eb3e9d435209a476dfd Mon Sep 17 00:00:00 2001 From: Ne_Eo Date: Wed, 4 Sep 2024 12:25:19 +0200 Subject: [PATCH] Better limit --- source/funkin/game/StrumLine.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/funkin/game/StrumLine.hx b/source/funkin/game/StrumLine.hx index dd952d19..763210f8 100644 --- a/source/funkin/game/StrumLine.hx +++ b/source/funkin/game/StrumLine.hx @@ -152,7 +152,8 @@ class StrumLine extends FlxTypedGroup { var scrollSpeed = strumLine.scrollSpeed; if(scrollSpeed == null) if (PlayState.instance != null) scrollSpeed = PlayState.instance.scrollSpeed; if(scrollSpeed == null) scrollSpeed = 1; - notes.limit = 1500 / scrollSpeed; + var limit = FlxG.height / 0.45; + notes.limit = limit / scrollSpeed; } public override function update(elapsed:Float) {