Float state animation, compatible with Victor ATB

Is it possible to code a simple snippet that displays a floaty bobbing animation on a sideview actor or enemy? It should be tied to a state.

I looked for similar plugins, but one doesn't work on sideview enemies, only on actors, and the other plugin that does that is Yanfly engine. I'm already using Victor engine and do not want to mess with incompatibilities of the two engines and overload my game with tons of unnecessary functions.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/float-state-animation-compatible-with-victor-atb.110442/