[SOLVED] Showing falling sprites on an animated main menu?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

[SOLVED] Showing falling sprites on an animated main menu?

#1 Post by 78909087 »

Okay so this is complicated.
Basically, I want the SnowBlossom effect on top of my moving background...
Is that possible?

This is the code without the SnowBlossom effect...
I'm not sure how to call for it, or to have it run on top of the changes...

Code: Select all

init:
    image main_menu:
        "Images/wut.jpg" with Dissolve(0.5, alpha=True)
        pause 13.25
        "Images/mainzambi.30.png" with Dissolve(0.5, alpha=True)
        pause 0.2
        "Images/mainzambi.50.png" with Dissolve(0.5, alpha=True)
        pause 0.1
        "Images/mainzambi.30.png" with Dissolve(0.5, alpha=True)
        pause 0.1
        "Images/wut.jpg" with Dissolve(0.5, alpha=True)
        pause 0.5
        "Images/mainzambi.200.png" with Dissolve(0.5, alpha=True)
        pause 0.25
        "Images/mainzambi.150.png" with Dissolve(0.5, alpha=True)
        pause 0.15
        "Images/mainzambi.50.png" with Dissolve(0.5, alpha=True)
        pause 0.1
        "Images/wut.jpg" with Dissolve(0.5, alpha=True)
        pause 10.5
        "Images/mainzambi.30.png" with Dissolve(0.5, alpha=True)
        pause 0.2
        "Images/mainzambi.50.png" with Dissolve(0.5, alpha=True)
        pause 0.1
        "Images/mainzambi.30.png" with Dissolve(0.5, alpha=True)
        pause 0.1
        "Images/wut.jpg" with Dissolve(0.5, alpha=True)
        pause 5.5
        "Images/mainzambi.jpg" with Dissolve(0.5, alpha=True)
        pause 0.25
        "Images/mainzambi.200.png" with Dissolve(0.5, alpha=True)
        pause 0.15        
        "Images/mainzambi.150.png" with Dissolve(0.5, alpha=True)
        pause 0.15
        "Images/mainzambi.50.png" with Dissolve(0.5, alpha=True)
        pause 0.1
        repeat
So my question is, on top of this animation, will it be possible to have falling particles/sprites/things?
(I'm really just trying to add some sparks to fall down, to take attention from the flickering zombie)

Thankyou if you can help (even if it's to tell me I'm an absolute idiot for this xD)
And thankyou for looking, even if you can't!
Last edited by 78909087 on Sun Sep 28, 2014 1:42 am, edited 1 time in total.
I am not friends with the sun.
Image

User avatar
SONTSE
Regular
Posts: 96
Joined: Sun Nov 24, 2013 10:49 pm
Completed: 11 VN's so far
Discord: jkx0282_10798
Contact:

Re: Showing falling sprites on an animated main menu?

#2 Post by SONTSE »

1)in script.rpy you declare an image

Code: Select all

image snow = SnowBlossom("[wher_ever_your_snowflake_image_are].png")
2)in screens.rpy seek "screen main_menu"
and push your SnowBlossom image in there

Code: Select all

screen main_menu:

    # This ensures that any other menu screen is replaced.
    tag menu

    window:
        style "mm_root"

    # The background of the main menu.   
 
    add "snow"  #<<<<<<<<<<<<<<<<<<<<<<<<< SNOW THAT WE ADDED INSIDE SCREEN
i hope that what you needed ^^

Post Reply

Who is online

Users browsing this forum: Google [Bot]