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).
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:
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.
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.
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).
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:
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.
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.