Animation of transparency of an unfixed png RPG maker MZ

Hello! I would like to know how you create animation of sun rays in PNG format. I would like the sun's rays to have smooth transitions.



At first, I planned to do this: I created two images, one with the rays positioned in one position, and the other with a slightly different position (all this so that you can feel the movement of the rays).

1 (1).png

1 (12).png


I made it so that the transparency in one image decreases every 45 frames, and the second image increases in parallel with it. This was supposed to create a smooth transition. However, I ran into a problem: I do not know how to make the animation snap to a specific location instead of following the player.

In this example, there is a smooth transition, but they move along with the character:

ezgif-7-6edf9195bd.gif

In the end, I decided to create a frame-based animation in Photoshop. I got more than 30 frames. However, I realized that if you use too many frames through the Galv layer, it can negatively affect the performance of the game.
1735555866815.png

I also tried to create an animation as a video using Photoshop, but I also had difficulties here.

Any js script or plugin is welcome.
So if I understood correctly you first tried this with pictures but don't want the picture to follow the player? VisuStella Core Engine has a feature where if you add a ! in front of your pic name, it doesn't follow you.
What I can't account for in your description is why, part way through the animation, a second light source (sun?) appears directly overhead. This seems unnecessary and odd.
What I can't account for in your description is why, part way through the animation, a second light source (sun?) appears directly overhead. This seems unnecessary and odd.
In the GIF, this is just a visual example of exactly how technically I want to do this. This is not what I want, I could provide absolutely any transitions of any images. I can show you another example , but this example will also not be in the game (this is just an example) This example is more similar to what I want to do, but I just need to refine it a little.

I implemented such transitions using the usual transition to transparency of two images. I just change the transparency from one to another. But these images go after the character! And for vizustella, this is a paid plugin, I just need to make it not tied to the player at least through the script command. An ordinary transition to change transparency, but without binding to the player.
1735941231409.png
1735941246869.png
without binding to the player.
I assume from that, that you want the image to be bound to the map. I am also assuming that if you have any VisuStella plugins you also have the Core Engine plugin. If you have, then all you need to do is put ! in front of the file name of the image.
And for vizustella, this is a paid plugin

VisuStella Core Engine is free.
(Also, you mentioned using Galv's Layers. Doesn't that have an option of creating something bound on the map? edit: not sure, but VS works anyway)

Original thread: https://forums.rpgmakerweb.com/threads/animation-of-transparency-of-an-unfixed-png-rpg-maker-mz.174292/