From 9c0ef5c4a85fce884af6b81c477bc4a73966d129 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 14 Jun 2014 10:52:39 -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 aa697fc..1244bc6 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -826,7 +826,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 = 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_offsets = [ 16 - (this.text_size[0]/2), -( this.text_size[1]/2) ]; this.snap_bubble_position(); this.timer = game.time.create(false);