I've just started using Ren'Py and I'm trying to customize the main menu page adding some personal illustrations and animations using the framework, but I'm struggling with one animation in particular.
What I want to achieve:
- Animated leaves falling in different directions and speed. (Achieved)
- The leaves change in shape and color (as if they were a GIF) in a loop while they're falling. (Not achieved)
But I would like the leaves to change in shape and color like this.
What I have (code):
Code: Select all
image hojas = Fixed(
SnowBlossom(im.FactorScale("images/particles3.png", 1), 20, xspeed=(20, 50), yspeed=(100, 200), start=50),
SnowBlossom(im.FactorScale("images/particles3-2.png", 1), 20, xspeed=(10, 25), yspeed=(50, 100), start=50))
screen main_menu:
add hojas
Code: Select all
#Animated leaves that change in shape and color
image animatedpic:
"assets/image1.png"
pause 0.2
"assets/image2.png"
pause 0.2
repeat
#Transform that moves the leaves from the top of the window to the bottom.
transform falling1:
xalign 0.5 yalign -0.3
linear 10.0 yalign 1.5 xalign 0.2
repeat
Thanks in advance for your help! <3