Size wordbubbles to text

This commit is contained in:
2014-06-15 19:29:09 -07:00
parent ba34c9f3da
commit a0928af04b

View File

@@ -833,7 +833,7 @@ var AISprite = function(game, x, y, key, frame) {
console.log(this.bubble_sprite.scale); console.log(this.bubble_sprite.scale);
this.bubble_sprite.scale.x = Number(this.text_size[0] / bubbleimg.width); this.bubble_sprite.scale.x = Number(this.text_size[0] / bubbleimg.width);
this.bubble_sprite.scale.y = Number(this.text_size[1] / bubbleimg.height); this.bubble_sprite.scale.y = Number(this.text_size[1] / bubbleimg.height);
this.bubble_text = bubblegrp.add.text(this.x, this.y, text, style); this.bubble_text = game.add.text(this.x, this.y, text, style, bubblegrp);
this.snap_bubble_position(); this.snap_bubble_position();
this.timer = game.time.create(false); this.timer = game.time.create(false);