1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-11-15 11:22:55 +00:00

Merge pull request #2499 from lemz1/loadingbar-fix

Fix Web Loading Bar
This commit is contained in:
Cameron Taylor 2024-05-13 21:08:13 -04:00 committed by GitHub
commit 3be1056e35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,7 +162,8 @@ class LoadingState extends MusicBeatSubState
{
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);
}