RPGMZ. Apologies, I'm sure this is so beginner and basic, and has probably been answered somewhere, but I searched the forums and the internet and couldn't find an explanation. In the battle scene, when the actor attacks the enemy, it plays the attack animation on the enemy regardless of whether the attack hit or missed the target. I'm not using any plugins. Is there any way to have a "missed" attack animation, or absence of an animation when the actor attack misses?
RPG Maker MZ Missed attack shows Hit animation
RPG Maker MZ SupportRight, that animation is supposed to represent the swing, etc.
The trick is, determining whether the skill hits and dealing its damage is all part of the same function in the code, which is called after the attack animation is played.
So you would have to rewrite the sequence of resolving a skill to make the hit check first, store that result, decide whether to play the animation, then calculate and deal the damage.
The trick is, determining whether the skill hits and dealing its damage is all part of the same function in the code, which is called after the attack animation is played.
So you would have to rewrite the sequence of resolving a skill to make the hit check first, store that result, decide whether to play the animation, then calculate and deal the damage.
Thanks. So that would be in one of the manager system plugins? You're talking about identifying the code, and writing a small plugin to change it?
"small" for some definition of the word. It's not a massive undertaking, but it's not trivial.
The larger trick is, just briefly spitballing it in my head, it would make your system incompatible with basically any other plugin that deals with battles. The majority of them reference Game_Action.apply() which would have to be rewritten to do what you want.
The larger trick is, just briefly spitballing it in my head, it would make your system incompatible with basically any other plugin that deals with battles. The majority of them reference Game_Action.apply() which would have to be rewritten to do what you want.
Yeah, I don't want to do that because there are a couple of plugins I like for battles. It seems wrong to hardcode in something that makes the attack animation happen before a check for hits. Oh well.
Well...to be fair, it is called the attack animation, not the hit animation 😉
You are the first person I recall seeing who's wanted it to work differently. Not that that's a bad thing, but it indicates it's not something the developers should've anticipated anyone would need easily changed.
And there's a lot of stuff hard coded that people change, that's what plugins are for. All you have to do is, y'know, work on your project. Once you have decided exactly what other plugins you'll be using, it's possible to change the code at that point.
Yeah I'll keep working on it. It's the nature of my project, I want snappier attacks. Another alternative is including some form of hit animation in the enemy battler's take damage sprites.
Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mz-missed-attack-shows-hit-animation.169586/