flashing lights + old code updated with new asset path system

This commit is contained in:
CyndaquilDAC
2021-05-05 16:33:16 -05:00
parent 7ccf634c15
commit f55014839e
7 changed files with 63 additions and 30 deletions

View File

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