From 1425e57831915d135d8ea83ad78f84e69001a3be Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Tue, 20 Jul 2021 13:43:49 -0700 Subject: [PATCH] snap fixes --- source/ChartingState.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/ChartingState.hx b/source/ChartingState.hx index ca5a1df..cf7e1be 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -1556,6 +1556,9 @@ class ChartingState extends MusicBeatState trace("SNAP - " + snap + " INCREASE - " + increase + " - GO TO BEAT " + beats); var data = TimingStruct.getTimingAtBeat(beats); + + if (beats <= 0) + FlxG.sound.music.time = 0; var bpm = data != null ? data.bpm : _song.bpm; @@ -1852,7 +1855,7 @@ class ChartingState extends MusicBeatState dummyArrow.x = Math.floor(FlxG.mouse.x / GRID_SIZE) * GRID_SIZE; - dummyArrow.y = (Math.floor(FlxG.mouse.y / deezNuts.get(snap)) * deezNuts.get(snap)); + dummyArrow.y = (Math.floor(FlxG.mouse.y / (GRID_SIZE / deezNuts.get(snap))) * (GRID_SIZE / deezNuts.get(snap))); } else {