mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-03-21 20:39:52 -04:00
re-add lerp to load screen
This commit is contained in:
parent
54f337fe9c
commit
259df760bc
1 changed files with 2 additions and 1 deletions
|
@ -162,7 +162,8 @@ class LoadingState extends MusicBeatSubState
|
|||
{
|
||||
targetShit = FlxMath.remapToRange(callbacks.numRemaining / callbacks.length, 1, 0, 0, 1);
|
||||
|
||||
loadBar.setGraphicSize(Std.int(FlxG.width * targetShit), loadBar.height);
|
||||
var lerpWidth:Int = Std.int(FlxMath.lerp(loadBar.width, FlxG.width * targetShit, 0.2));
|
||||
loadBar.setGraphicSize(lerpWidth, loadBar.height);
|
||||
loadBar.updateHitbox();
|
||||
FlxG.watch.addQuick('percentage?', callbacks.numRemaining / callbacks.length);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue