Go back to text wordbubbles

This commit is contained in:
2014-06-14 10:50:49 -07:00
parent 859268e72c
commit 714926c901

View File

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