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

Fixed positioning in Blazin'.

This commit is contained in:
EliteMasterEric 2024-09-04 10:58:18 -04:00
parent 3a2ca6b525
commit 24096bd319
4 changed files with 8 additions and 4 deletions

2
assets

@ -1 +1 @@
Subproject commit 8156c2d4b356a9e4b12a0275a82e58c84b65c4c3 Subproject commit bbf8c7d53b7560c7440efd4fb8b1d5cfa17e56b9

View file

@ -102,7 +102,9 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
var animFrame:Int = Math.round(levels[i].value * 5); var animFrame:Int = Math.round(levels[i].value * 5);
#if desktop #if desktop
animFrame = Math.round(animFrame * FlxG.sound.volume); // Web version scales with the Flixel volume level.
// This line brings platform parity but looks worse.
// animFrame = Math.round(animFrame * FlxG.sound.volume);
#end #end
animFrame = Math.floor(Math.min(5, animFrame)); animFrame = Math.floor(Math.min(5, animFrame));

View file

@ -122,7 +122,7 @@ class AnimateAtlasCharacter extends BaseCharacter
*/ */
public override function isAnimationFinished():Bool public override function isAnimationFinished():Bool
{ {
return mainSprite.isAnimationFinished(); return mainSprite?.isAnimationFinished() ?? false;
} }
function loadAtlasSprite():FlxAtlasSprite function loadAtlasSprite():FlxAtlasSprite

View file

@ -109,7 +109,9 @@ class CharSelectGF extends FlxAtlasSprite implements IBPMSyncedScriptedClass
var animFrame:Int = Math.round(levels[i].value * 12); var animFrame:Int = Math.round(levels[i].value * 12);
#if desktop #if desktop
animFrame = Math.round(animFrame * FlxG.sound.volume); // Web version scales with the Flixel volume level.
// This line brings platform parity but looks worse.
// animFrame = Math.round(animFrame * FlxG.sound.volume);
#end #end
animFrame = Math.floor(Math.min(12, animFrame)); animFrame = Math.floor(Math.min(12, animFrame));