mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-09 16:24:42 +00:00
fix AtlasText bug
This commit is contained in:
parent
9c6b3bf51d
commit
c545a6e090
|
@ -118,8 +118,8 @@ class AtlasText extends FlxTypedSpriteGroup<AtlasChar>
|
||||||
else if (charCount > 0)
|
else if (charCount > 0)
|
||||||
{
|
{
|
||||||
var lastChar = group.members[charCount - 1];
|
var lastChar = group.members[charCount - 1];
|
||||||
xPos = lastChar.x + lastChar.width;
|
xPos = lastChar.x + lastChar.width - x;
|
||||||
yPos = lastChar.y + lastChar.height - maxHeight;
|
yPos = lastChar.y + lastChar.height - maxHeight - y;
|
||||||
}
|
}
|
||||||
|
|
||||||
var splitValues = text.split("");
|
var splitValues = text.split("");
|
||||||
|
@ -146,10 +146,10 @@ class AtlasText extends FlxTypedSpriteGroup<AtlasChar>
|
||||||
charSprite = group.members[charCount];
|
charSprite = group.members[charCount];
|
||||||
charSprite.revive();
|
charSprite.revive();
|
||||||
charSprite.char = char;
|
charSprite.char = char;
|
||||||
|
charSprite.alpha = 1;//gets multiplied when added
|
||||||
}
|
}
|
||||||
charSprite.x = xPos;
|
charSprite.x = xPos;
|
||||||
charSprite.y = yPos + maxHeight - charSprite.height;
|
charSprite.y = yPos + maxHeight - charSprite.height;
|
||||||
charSprite.alpha = 1;//gets multiplied when added
|
|
||||||
add(charSprite);
|
add(charSprite);
|
||||||
|
|
||||||
xPos += charSprite.width;
|
xPos += charSprite.width;
|
||||||
|
|
Loading…
Reference in a new issue