Go back to text wordbubbles

This commit is contained in:
2014-06-14 10:49:12 -07:00
parent ff3e27e225
commit 859268e72c

View File

@@ -826,7 +826,8 @@ var AISprite = function(game, x, y, key, frame) {
style = {font: '14px Arial Bold', fill: '#ffffff', align: 'center'}
this.text_size = stringSize(text, style['font']);
this.bubble = game.add.text(this.x, this.y, text, style);
this.bubble_offsets = [ (this.body.width/2) + -(this.text_size[0] / 2), -( this.text_size[1]/2) ];
this.bubble.anchor.set_to(0.5, 0.5);
this.bubble_offsets = [ (this.body.width/2), -( this.text_size[1]/2) ];
this.snap_bubble_position();
this.timer = game.time.create(false);