From 8b361143b6bb0236506b3c25619cdeeceb3ea7da Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Thu, 12 Jun 2014 01:59:01 -0700 Subject: [PATCH] Moved to graphical word bubbles --- moonlight/js/moonlight-skulk.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 663b09f..407a189 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -599,6 +599,8 @@ var AISprite = function(game, x, y, spritetype) { if ( this.bubble !== null ) { this.bubble.body.velocity.x = this.body.velocity.x; this.bubble.body.velocity.y = this.body.velocity.y; + this.bubble.x = this.x - (this.bubble.width / 2); + this.bubble.y = this.y - (this.bubble.height); } switch ( game.rnd.integerInRange(0, 4) ) {