v0.5.0b: fixed status text overlapping above characters

This commit is contained in:
Evan Debenham
2017-02-13 22:57:20 -05:00
parent 934c8680c6
commit bea1623495

View File

@@ -150,7 +150,11 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
if (args.length > 0) {
text = Messages.format( text, args );
}
FloatingText.show( x + width * 0.5f, y, text, color );
if (ch != null) {
FloatingText.show( x + width * 0.5f, y, ch.pos, text, color );
} else {
FloatingText.show( x + width * 0.5f, y, text, color );
}
}
}