1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-27 01:03:35 +00:00
This commit is contained in:
Cameron Taylor 2020-11-17 18:31:59 -08:00
parent 3a1a410fe2
commit a0d99945df

View file

@ -64,6 +64,13 @@ class MusicBeatState extends FlxUIState
totalSteps += 1;
lastStep += Conductor.stepCrochet;
// If the song is at least 3 steps behind
if (Conductor.songPosition > lastStep + (Conductor.stepCrochet * 3))
{
lastStep = Conductor.songPosition;
totalSteps = Math.round(lastStep / Conductor.stepCrochet);
}
if (totalSteps % 4 == 0)
beatHit();
}