
Adds death animated sprites for battlers! · By
Hi there!
Well, due to the obfuscation on Visustella Plugins and their terms of use, it's always a "shoot in the dark" when a compatibility need to be made with Visustella. Can be easy, can be hard. Never know.
So let's try something. Find these two pieces of codes:
Sprite_Actor.prototype.getDeathSprite = function() { return $dataSystem.optSideView && this._actor.actor().meta[NOTETAG] } Sprite_Enemy.prototype.getDeathSprite = function() { return this._enemy.enemy().meta[NOTETAG] }
And replace them with the following:
Sprite_Actor.prototype.getDeathSprite = function() { if(this._actor){ return $dataSystem.optSideView && this._actor.actor().meta[NOTETAG] }else{ return "" } } Sprite_Enemy.prototype.getDeathSprite = function() { if(this._enemy){ return this._enemy.enemy().meta[NOTETAG] }else{ return "" } }
Let me know if it works or not. Otherwise I will have to take a look by putting these two plugins together. Tell me how to replicate the proble. Are you just starting a battle? Or did you make any type of configuration on the battle core?
Because it seems to me that the "this._actor" is not returning a real actor, but something else, maybe an enemy? Because is kinda not possible that the .actor property would not be a function from this._actor.
So any details you might have can help.