mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-11 22:57:31 +00:00
Update LoadingState.hx
This commit is contained in:
parent
a6948c3a38
commit
4e935b47c6
|
@ -162,7 +162,8 @@ class LoadingState extends MusicBeatSubState
|
||||||
{
|
{
|
||||||
targetShit = FlxMath.remapToRange(callbacks.numRemaining / callbacks.length, 1, 0, 0, 1);
|
targetShit = FlxMath.remapToRange(callbacks.numRemaining / callbacks.length, 1, 0, 0, 1);
|
||||||
|
|
||||||
loadBar.scale.x = FlxMath.lerp(loadBar.scale.x, targetShit, 0.50);
|
loadBar.setGraphicSize(Std.int(FlxG.width * targetShit), loadBar.height);
|
||||||
|
loadBar.updateHitbox();
|
||||||
FlxG.watch.addQuick('percentage?', callbacks.numRemaining / callbacks.length);
|
FlxG.watch.addQuick('percentage?', callbacks.numRemaining / callbacks.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue