From 37a15e0a0fd9e1825680fb4fb9eb2a42922157ac Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Tue, 11 Jun 2024 12:13:10 -0400 Subject: [PATCH] reactive speaker to gamevolume on desktop --- source/funkin/audio/visualize/ABotVis.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/funkin/audio/visualize/ABotVis.hx b/source/funkin/audio/visualize/ABotVis.hx index a455cb8a2..cf43a8add 100644 --- a/source/funkin/audio/visualize/ABotVis.hx +++ b/source/funkin/audio/visualize/ABotVis.hx @@ -101,6 +101,10 @@ class ABotVis extends FlxTypedSpriteGroup { var animFrame:Int = Math.round(levels[i].value * 5); + #if desktop + animFrame = Math.round(animFrame * FlxG.sound.volume); + #end + animFrame = Math.floor(Math.min(5, animFrame)); animFrame = Math.floor(Math.max(0, animFrame));