Adding static effect sprites from the map

This commit is contained in:
2014-06-14 12:42:58 -07:00
parent 8a81b10558
commit 91e6f05063

View File

@@ -573,6 +573,7 @@ var EffectSprite = function(game, x, y, key, frame, animation) {
this.animations.destroy();
this.loadTexture(this.sprite_key, 0);
addAnimation(this, this.sprite_animation);
this.animations.play(this.sprite_animation);
}
Phaser.Sprite.call(this, game, x, y, null);