diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 2348c1d..84633fe 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -599,7 +599,6 @@ var AISprite = function(game, x, y, key, frame) { this.bubble_sprite = game.add.sprite(this.x, this.y, 'wordbubble'); 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); this.snap_bubble_position(); @@ -612,8 +611,8 @@ var AISprite = function(game, x, y, key, frame) { { this.bubble_sprite.x = this.x + 16; this.bubble_sprite.y = this.y - 33; - this.bubble_text.position.x = this.x - this.bubble_text_offsets[0]; - this.bubble_text.position.y = this.y - this.bubble_text_offsets[1]; + this.bubble_text.position.x = this.x + 16 - 150 + 5; + this.bubble_text.position.y = this.y - 67 + 5; } this.update = function()