Size wordbubbles to text

This commit is contained in:
2014-06-15 19:41:41 -07:00
parent 725694ed49
commit 29f19b0278

View File

@@ -844,7 +844,7 @@ var AISprite = function(game, x, y, key, frame) {
this.bubble_sprite.x = this.x + 16;
this.bubble_sprite.y = this.y;
var tx = this.bubble_sprite.x - (this.text_size[0]/2);
var ty = this.bubble_sprite.y - (this.bubble_sprite.height);
var ty = this.bubble_sprite.y - (this.bubble_sprite.height) + 8;
this.bubble_text.position.x = tx;
this.bubble_text.position.y = ty;
}