From e33a0e0c3e5fddf3b1df8a502df82362330fcc58 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 14 Jun 2014 11:09:14 -0700 Subject: [PATCH] Go back to text wordbubbles --- moonlight/js/moonlight-skulk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index c68c67e..68bfe51 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -597,7 +597,7 @@ 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_sprite = game.add.sprite(this.x, this.y, 'wordbubble'); - this.bubble_sprite.achor.set_to(0.5, 0.5); + this.bubble_sprite.anchor.setTo(0.5, 0.5); this.bubble_text = game.add.text(this.x, this.y, text, style); this.bubble_text_offsets = [ 16 - (this.text_size[0]/2), -( this.text_size[1]/2) ]; console.log(this.bubble_text_offsets);