MZ Scaled Sprites for parallax mapping with 3D Perspective

Hello everyone,

I was hoping there is an existing script for scaling sprites based on their distance from the "camera" (simulated depth on a still image) if I'm using parallax mapping with images that have a 3D perspective, similar to PS1 Final Fantasy games. I used to have one for MV, I believe it was a Q plugin. I haven't been able to find an equivalent for MZ.

Can someone point me to one, or if someone has the capability, and would be willing to conjure it up with their magic...

Please let me know. Thanks
I threw something together that seems to do the trick.

This lets you designate the "focal point" with an specifically named event, scaling the sprites smaller the closer they get to it along the y-axis (it could be tweaked for the x-axis too but I didn't see much use for that in this case). If the event is absent then it won't do anything. Sizes and distance can be set in the parameters or via notetags if you need to adjust it per map.

I noticed some artifacts above the sprites at certain sizes that I haven't figured out how to get rid of yet. It's probably something to do with scaling outside factors of the sprite resolution or something. It could possibly be fixed by changing the smoothing algorithm but I haven't found a happy balance. I only tested it on the stock sprites so it might not even happen on custom ones.

Hope this helps!
I threw something together that seems to do the trick.

This lets you designate the "focal point" with an specifically named event, scaling the sprites smaller the closer they get to it along the y-axis (it could be tweaked for the x-axis too but I didn't see much use for that in this case). If the event is absent then it won't do anything. Sizes and distance can be set in the parameters or via notetags if you need to adjust it per map.

I noticed some artifacts above the sprites at certain sizes that I haven't figured out how to get rid of yet. It's probably something to do with scaling outside factors of the sprite resolution or something. It could possibly be fixed by changing the smoothing algorithm but I haven't found a happy balance. I only tested it on the stock sprites so it might not even happen on custom ones.

Hope this helps!


Hey AllieKat, I'm super late to seeing this, but this worked like a charm! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/scaled-sprites-for-parallax-mapping-with-3d-perspective.167266/