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:
parent
7097f6f54e
commit
107033eb62
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user