Fix beat code and pixel sustain ends

This commit is contained in:
CuckyDev
2021-07-12 01:43:05 -04:00
parent d48a72fca9
commit 11c76edd93
5 changed files with 50 additions and 23 deletions

View File

@ -26,11 +26,21 @@ class MusicBeatSubstate extends FlxSubState
//everyStep();
var nextStep = updateCurStep();
if (nextStep > curStep && curStep >= 0)
if (nextStep >= 0)
{
for (i in curStep...nextStep)
if (nextStep > curStep)
{
curStep++;
for (i in curStep...nextStep)
{
curStep++;
updateBeat();
stepHit();
}
}
else if (nextStep < curStep)
{
//Song reset?
curStep = nextStep;
updateBeat();
stepHit();
}