From 94b6cba78d04023b948aa8cd1a81e99cea14dab4 Mon Sep 17 00:00:00 2001 From: KadeDeveloper Date: Fri, 13 Aug 2021 15:00:37 -0700 Subject: [PATCH] make claps based on time instead of y positions --- source/ChartingState.hx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/source/ChartingState.hx b/source/ChartingState.hx index c44e4b5..84a50ec 100644 --- a/source/ChartingState.hx +++ b/source/ChartingState.hx @@ -2134,16 +2134,10 @@ class ChartingState extends MusicBeatState { curRenderedNotes.forEach(function(note:Note) { - if (FlxG.sound.music.playing) + if (note.strumTime <= Conductor.songPosition && !claps.contains(note)) { - if (strumLine.overlaps(note)) - { - if(!claps.contains(note)) - { - claps.push(note); - FlxG.sound.play(Paths.sound('SNAP')); - } - } + claps.push(note); + FlxG.sound.play(Paths.sound('SNAP')); } }); }