v0.3.1: modified floating text on characters to be more dependant on the character's true position than the sprite's current position.

This commit is contained in:
Evan Debenham 2015-06-23 22:45:33 -04:00 committed by Evan Debenham
parent 7097f6f54e
commit 107033eb62

View File

@ -130,7 +130,8 @@ public class CharSprite extends MovieClip implements Tweener.Listener, MovieClip
text = Utils.format( text, args );
}
if (ch != null) {
FloatingText.show( x + width * 0.5f, y, ch.pos, text, color );
PointF tile = DungeonTilemap.tileCenterToWorld(ch.pos);
FloatingText.show( tile.x, tile.y-(width*0.5f), ch.pos, text, color );
} else {
FloatingText.show( x + width * 0.5f, y, text, color );
}