MZ Rotate sprite on custom axis

Hey folks,

There seem to be plenty of plugins out there that rotate event sprites, but I am looking to do a falling tree animation (like stardew valley), which requires that I rotate the sprite 90 degrees from its bottom-center axis (or a few px up from there) over the course of a few seconds. Even better would be to start slow and then speed it up as it "falls".

Is there a plugin out there that can do this, or would it be possible to script this somehow?

Thanks!
The default point of rotation is bottom center of the character sprite. So if you get the sprite of the tree event you just need to change its rotation property. You said there are plugins that can manipulate the sprite right?
It might be simpler to use an image editor and configure it as an MV-style animation sheet.
The default point of rotation is bottom center of the character sprite. So if you get the sprite of the tree event you just need to change its rotation property. You said there are plugins that can manipulate the sprite right?

I kind of went with this route, as I found a plugin that added some basic rotation script calls here

I tweaked the rotation point in the JS (because that plugin was set to the middle of the sprite). I then made my own "animation" by incrementing the rotation value using a variable in a loop event, so that I can start it rotating slowly and speed it up as it falls by incrementing it by larger amounts.

Here is the event setup for this:

rotate.JPG


The loop ends when math = 90, so it will finish "falling" and erase the event. With some sfx and all that, it is pretty convincing!

A bit clunky of an approach, but it works, haha. This at least gives me a lot of control to fine-tune the animation speed quickly.

Original thread: https://forums.rpgmakerweb.com/threads/rotate-sprite-on-custom-axis.170590/