I need help figuring out how to make this battle system.

Someone gave me the idea to make a battle system where the enemy's defense changes depending on its motion (for example: an enemy that floats up and down on the screen that's most vulnerable in the center of its motion). The issue is, I'm not sure how to implement this system.

There are plugins to animate the front view enemies, but I'm not sure what custom code I would need to add in order to link the animation to enemy stats. Any help would be appreciated 🙂

I've moved this thread to MV Support. Thank you.

In order to do this you would basically need a plugin that modifies damage calculation by checking which frame the enemy is at in their animation sequence. Getting the current animation frame is not a difficult task, but what to do with it afterwards might be incredibly complex depending on what plugins you're already using, and you would either need to write this yourself or commission a coder to make it because I very much doubt a plugin currently exists that does this.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-figuring-out-how-to-make-this-battle-system.149605/