diff --git a/source/funkin/audio/visualize/ABotVis.hx b/source/funkin/audio/visualize/ABotVis.hx index 552b18c41..1a2c1b5f4 100644 --- a/source/funkin/audio/visualize/ABotVis.hx +++ b/source/funkin/audio/visualize/ABotVis.hx @@ -105,7 +105,13 @@ class ABotVis extends FlxTypedSpriteGroup for (i in 0...min(group.members.length, levels.length)) { - var animFrame:Int = Math.round(levels[i].value * 5); + var animFrame:Int = Math.round(levels[i].value * 6); + + // don't display if we're at 0 volume from the level + group.members[i].visible = animFrame > 0; + + // decrement our animFrame, so we can get a value from 0-5 for animation frames + animFrame -= 1; #if desktop // Web version scales with the Flixel volume level. diff --git a/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx b/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx index 342c15c2f..5b95139df 100644 --- a/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx +++ b/source/funkin/graphics/adobeanimate/FlxAtlasSprite.hx @@ -210,6 +210,7 @@ class FlxAtlasSprite extends FlxAnimate /** * Returns true if the animation has finished playing. * Never true if animation is configured to loop. + * @return Whether the animation has finished playing. */ public function isAnimationFinished():Bool { @@ -221,6 +222,7 @@ class FlxAtlasSprite extends FlxAnimate /** * Returns true if the animation has reached the last frame. * Can be true even if animation is configured to loop. + * @return Whether the animation has reached the last frame. */ public function isLoopComplete():Bool { @@ -255,7 +257,7 @@ class FlxAtlasSprite extends FlxAnimate this.anim.goToFrameLabel(label); } - function getFrameLabelNames(?layer:haxe.extern.EitherType = null) + function getFrameLabelNames(?layer:haxe.extern.EitherType):Array { var labels = this.anim.getFrameLabels(layer); var array = [];