Edit: Full plugin in post below!
Hello Makers!
So recently I was looking at a thread where someone wanted to change a monster battles color mid-battle.
I did a little digging and not only found the battlerHue function, but rewrote it so it can make a monster flash a rainbow of colors in battle!
Very cool looking effect IMO.
Now, the catch for me is that when a monster is set for this color, it takes a short while to be drawn on-screen.
I wanted to share the snippet in the hopes someone else could test it and see if they experience that too and if if so, could maybe share any ideas on how to fix it.
So here it is:
Just tag a enemy battler with <rainbow> to see the magic!
Thanks in advance for anyone who can assist.
Hello Makers!
So recently I was looking at a thread where someone wanted to change a monster battles color mid-battle.
I did a little digging and not only found the battlerHue function, but rewrote it so it can make a monster flash a rainbow of colors in battle!
Very cool looking effect IMO.
Now, the catch for me is that when a monster is set for this color, it takes a short while to be drawn on-screen.
I wanted to share the snippet in the hopes someone else could test it and see if they experience that too and if if so, could maybe share any ideas on how to fix it.
So here it is:
JavaScript:
Game_Enemy.prototype.battlerHue = function() { //TEST
if(!this.isRainbowEnemy()) return this.enemy().battlerHue;
if(!$gameParty.testColor) $gameParty.testColor = 0;
$gameParty.testColor += 1;
if($gameParty.testColor == 361) $gameParty.testColor = 0;
return $gameParty.testColor;
return this.enemy().battlerHue; //ORIGINAL LINE
};
Game_Enemy.prototype.isRainbowEnemy = function() {
if($dataEnemies[this.enemy().id].meta.rainbow) return true;
return false;
};
Just tag a enemy battler with <rainbow> to see the magic!
Thanks in advance for anyone who can assist.