Word bubbles
This commit is contained in:
@@ -322,6 +322,12 @@ Light.prototype = Object.create(Phaser.Sprite.prototype);
|
||||
Light.prototype.constructor = Light;
|
||||
|
||||
var AISprite = function(game, x, y, spritetype) {
|
||||
this.clearWordBubble = function()
|
||||
{
|
||||
this.bubble.destroy();
|
||||
this.bubble = null;
|
||||
}
|
||||
|
||||
this.setWordBubble = function()
|
||||
{
|
||||
if ( this.bubble != null || this.sprite_group == undefined) {
|
||||
@@ -356,12 +362,6 @@ var AISprite = function(game, x, y, spritetype) {
|
||||
setTimeout(function(){this.clearWordBubble();}, 20000);
|
||||
}
|
||||
|
||||
this.clearWordBubble = function()
|
||||
{
|
||||
this.bubble.destroy();
|
||||
this.bubble = null;
|
||||
}
|
||||
|
||||
this.update = function()
|
||||
{
|
||||
if ( game.rnd.integerInRange(0, 100) < 95 )
|
||||
|
||||
Reference in New Issue
Block a user