Enemy sprites "tweening" while using a skill?

hello! I am wondering if its possible that I can link a sort of, "tween" to the sprite of the enemy using a skill, or something akin to it?

Let me show an example:

attack-tween-example.gif


It's not the animation being on top or damage numbers or anything, its just when the skill is being used, the enemy sprite moves a little, preferably in a way that's controllable and customizable in some way. It doesn't need to be advanced at all, just some basic means of movement.
You'll need a script for this


I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.


If I remember correctly, Moghunter has some scripts or a battlesystem like that, you should check out his site.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-sprites-tweening-while-using-a-skill.43535/