Size wordbubbles to text

This commit is contained in:
2014-06-15 19:37:46 -07:00
parent 3d45f55b92
commit 0d214b1308

View File

@@ -847,7 +847,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.text_size[1]);
var ty = this.bubble_sprite.y - (this.bubble_sprite.height);
this.bubble_text.position.x = tx;
this.bubble_text.position.y = ty;
}