From fd68453f04880a2377666a476cfb28b53228ee3a Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Thu, 12 Jun 2014 00:07:23 -0700 Subject: [PATCH] Word bubbles --- moonlight/js/moonlight-skulk.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index e49e6d0..d12a51d 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -324,7 +324,7 @@ Light.prototype.constructor = Light; var AISprite = function(game, x, y, spritetype) { this.setWordBubble = function() { - if ( this.bubble != null || this.sprite_group == undefined) { + if ( this.bubble !== null || this.sprite_group == undefined) { return; } //this.bubble = game.add.group() @@ -379,6 +379,7 @@ var AISprite = function(game, x, y, spritetype) { if ( this.clear_bubble == true ) { this.bubble = null; this.clear_bubble = false; + console.log("Cleared bubble"); } else { this.bubble = game.add.text(this.x, this.y - 20, this.bubble_text, this.bubble_style); }