From 1b11aa0cff8f53b5adb23203b748784f20688dda Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 12 Jul 2014 00:04:08 -0700 Subject: [PATCH] Awareness bubbles now appear below the UI --- moonlight/src/AISprite.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/moonlight/src/AISprite.js b/moonlight/src/AISprite.js index 83c36d6..f4258d3 100644 --- a/moonlight/src/AISprite.js +++ b/moonlight/src/AISprite.js @@ -181,6 +181,7 @@ var AISprite = function(game, x, y, key, frame) { this.state_changed_at = new Phaser.Point(this.x, this.y); this.startAwarenessTimer(); setAwarenessState(this, state); + bubblegroup = game.state.states.game.bubble_group; if ( isSet(this.awareness_effect) ) { this.awareness_effect.alive = false; @@ -209,7 +210,10 @@ var AISprite = function(game, x, y, key, frame) { this.awareness_effect = game.state.states.game.add.sprite( this.x + 16, this.y - 16, - 'balloon'); + 'balloon', + 0, + bubblegroup + ); addAnimation(this.awareness_effect, animkey); this.awareness_effect.play(animkey, null, false, true); }