From 40a056078c627be0e78b11bbae4fd6e4cb9a896d Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Fri, 23 Feb 2024 02:03:34 -0500 Subject: [PATCH] vispos --- source/funkin/audio/visualize/ABotVis.hx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/funkin/audio/visualize/ABotVis.hx b/source/funkin/audio/visualize/ABotVis.hx index 16a023474..aa843f6e8 100644 --- a/source/funkin/audio/visualize/ABotVis.hx +++ b/source/funkin/audio/visualize/ABotVis.hx @@ -26,12 +26,17 @@ class ABotVis extends FlxTypedSpriteGroup var visFrms:FlxAtlasFrames = Paths.getSparrowAtlas('aBotViz'); + // these are the differences in X position, from left to right + var positionX:Array = [0, 59, 56, 66, 54, 52, 51]; + for (lol in 1...8) { // pushes initial value volumes.push(0.0); - var viz:FlxSprite = new FlxSprite(50 * lol, 0); + var posX:Float = positionX[lol - 1] + (positionX[lol - 2] ?? 0); + + var viz:FlxSprite = new FlxSprite(posX, 0); viz.frames = visFrms; add(viz);