cool pause music

This commit is contained in:
Cameron Taylor
2020-11-20 04:21:04 -08:00
parent f40b4df571
commit 5b46515e5b
5 changed files with 27 additions and 3 deletions

View File

@ -34,7 +34,8 @@ class MusicBeatState extends FlxUIState
everyStep();
updateCurStep();
curBeat = Math.floor(curStep / 4);
// Needs to be ROUNED, rather than ceil or floor
curBeat = Math.round(curStep / 4);
super.update(elapsed);
}
@ -68,7 +69,7 @@ class MusicBeatState extends FlxUIState
if (Conductor.songPosition > lastStep + (Conductor.stepCrochet * 3))
{
lastStep = Conductor.songPosition;
totalSteps = Math.round(lastStep / Conductor.stepCrochet);
totalSteps = Math.ceil(lastStep / Conductor.stepCrochet);
}
if (totalSteps % 4 == 0)