From c545a6e090e0777668b2d706c5fb737ca68163a7 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Mon, 22 Mar 2021 21:39:50 -0500 Subject: [PATCH] fix AtlasText bug --- source/ui/AtlasText.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/ui/AtlasText.hx b/source/ui/AtlasText.hx index 3ba3a746a..e9d06e711 100644 --- a/source/ui/AtlasText.hx +++ b/source/ui/AtlasText.hx @@ -118,8 +118,8 @@ class AtlasText extends FlxTypedSpriteGroup else if (charCount > 0) { var lastChar = group.members[charCount - 1]; - xPos = lastChar.x + lastChar.width; - yPos = lastChar.y + lastChar.height - maxHeight; + xPos = lastChar.x + lastChar.width - x; + yPos = lastChar.y + lastChar.height - maxHeight - y; } var splitValues = text.split(""); @@ -146,10 +146,10 @@ class AtlasText extends FlxTypedSpriteGroup charSprite = group.members[charCount]; charSprite.revive(); charSprite.char = char; + charSprite.alpha = 1;//gets multiplied when added } charSprite.x = xPos; charSprite.y = yPos + maxHeight - charSprite.height; - charSprite.alpha = 1;//gets multiplied when added add(charSprite); xPos += charSprite.width;