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:
parent
3a2ca6b525
commit
24096bd319
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit 8156c2d4b356a9e4b12a0275a82e58c84b65c4c3
|
||||
Subproject commit bbf8c7d53b7560c7440efd4fb8b1d5cfa17e56b9
|
|
@ -102,7 +102,9 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
|
|||
var animFrame:Int = Math.round(levels[i].value * 5);
|
||||
|
||||
#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
|
||||
|
||||
animFrame = Math.floor(Math.min(5, animFrame));
|
||||
|
|
|
@ -122,7 +122,7 @@ class AnimateAtlasCharacter extends BaseCharacter
|
|||
*/
|
||||
public override function isAnimationFinished():Bool
|
||||
{
|
||||
return mainSprite.isAnimationFinished();
|
||||
return mainSprite?.isAnimationFinished() ?? false;
|
||||
}
|
||||
|
||||
function loadAtlasSprite():FlxAtlasSprite
|
||||
|
|
|
@ -109,7 +109,9 @@ class CharSelectGF extends FlxAtlasSprite implements IBPMSyncedScriptedClass
|
|||
var animFrame:Int = Math.round(levels[i].value * 12);
|
||||
|
||||
#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
|
||||
|
||||
animFrame = Math.floor(Math.min(12, animFrame));
|
||||
|
|
Loading…
Reference in a new issue