Is there a way to make animations in battle play underneath battlers?
For example, if you used an ability in which an icy field appears, I would like it to be seen below the battlers and not above them.
MV - The Z index of the battle animations can be changed?
● ARCHIVED · READ-ONLY
-
-
This is necessary for my game even so this will be the first and last bounce.
Thanks in advance. -
You can make some modifications within the Animation tab in the database.
I've made copies of a number of animations to change various things to get more custom animations for things like summoning zombies....... -
Someone once shared a script with me on here, it was a long time ago, and I can't recall who it was. The script allowed you to set an animation behind the actor layer if it's name in the database contained certain characters,
Code:So copy that text into a blank .js file, import it into your project, and add TPZH to the name of animations you want to show up below the actors.var animation_position = Sprite_Animation.prototype.updatePosition; Sprite_Animation.prototype.updatePosition = function() { animation_position.call(this) if (this._animation.name.contains("TPZH")) { this.z = -1; } else { this.z = 8; } };
It is worth noting that this does not work in MZ. I'm not sure why, as I never really knew much about how sprites were drawn to begin with, but it seems like changes to the z axis no longer affect animations and damage popups. -
Someone once shared a script with me on here, it was a long time ago, and I can't recall who it was. The script allowed you to set an animation behind the actor layer if it's name in the database contained certain characters,
Code:So copy that text into a blank .js file, import it into your project, and add TPZH to the name of animations you want to show up below the actors.var animation_position = Sprite_Animation.prototype.updatePosition; Sprite_Animation.prototype.updatePosition = function() { animation_position.call(this) if (this._animation.name.contains("TPZH")) { this.z = -1; } else { this.z = 8; } };
It is worth noting that this does not work in MZ. I'm not sure why, as I never really knew much about how sprites were drawn to begin with, but it seems like changes to the z axis no longer affect animations and damage popups.
Thank you very much for the script, my goal is MV and it will be for a long time. Seriously thank you very much! -
it's because MZ use Efekseer (external program to make animation) files as animation instead of the older MV animation style (where we set our image frame by frame).It is worth noting that this does not work in MZ. I'm not sure why, as I never really knew much about how sprites were drawn to begin with, but it seems like changes to the z axis no longer affect animations and damage popups.
-
That isn't entirely true, as you can still use MV animations in MZ, and this script has no effect on their Z axis when you do that. I think it separated all visual elements into their own containers that each have their own Z axis values, and changing the axis of something on the battle animation plane will never cause it to appear below the battler plane because those planes are always separate. I don't really know for sure, though.it's because MZ use Efekseer (external program to make animation) files as animation instead of the older MV animation style (where we set our image frame by frame).
-
ah yes... we can use MV animation using plugins...That isn't entirely true, as you can still use MV animations in MZ, and this script has no effect on their Z axis when you do that. I think it separated all visual elements into their own containers that each have their own Z axis values, and changing the axis of something on the battle animation plane will never cause it to appear below the battler plane because those planes are always separate. I don't really know for sure, though.
in my experience when writting my phone menu engine plugin... MZ use sorta like "layer order" in the scene "children"... the later you put it in the children using addChild method... the more it will be on TOP of the screen... if you want to arrange the order... then you need to arrange the scene "children" instead of changing z value... and it would be hard to for example make half Layer A shown on top of Layer B while the rest shown below Layer B.