improve flashing lights option
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user