improve flashing lights option

This commit is contained in:
M&M
2021-05-10 00:17:03 -07:00
parent 00d15a3cfb
commit 06955b344a
3 changed files with 42 additions and 27 deletions

View File

@ -37,14 +37,13 @@ class MenuItem extends FlxSpriteGroup
{
super.update(elapsed);
y = FlxMath.lerp(y, (targetY * 120) + 480, 0.17 * (60 / FlxG.save.data.fpsCap));
if(FlxG.save.data.flashing){
if (isFlashing)
flashingInt += 1;
if (isFlashing)
flashingInt += 1;
if (flashingInt % fakeFramerate >= Math.floor(fakeFramerate / 2))
week.color = 0xFF33ffff;
else
week.color = FlxColor.WHITE;
}
if (flashingInt % fakeFramerate >= Math.floor(fakeFramerate / 2))
week.color = 0xFF33ffff;
else if (FlxG.save.data.flashing)
week.color = FlxColor.WHITE;
}
}