Animated Movie Backgrounds

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
Aurelius
Newbie
Posts: 20
Joined: Fri Jun 06, 2014 6:56 pm
Projects: Secrets of the Ark, Degrees of Freedom
Organization: Bleau Eye Entertainment
Location: United States
Contact:

Animated Movie Backgrounds

#1 Post by Aurelius » Sun Jun 29, 2014 1:57 am

I have successfully integrated a movie background for an animated main menu background. However, when I start the game it doesn't get rid of the animated background but instead gets rid of my image-buttons and continuously plays the movie. How do I get rid of the movie when someone pushes the start button?

Code: Select all

##############################################################################
# Main Menu
#
# Screen that's used to display the main menu, when Ren'Py first starts
# http://www.renpy.org/doc/html/screen_special.html#main-menu

screen main_menu:

    # This ensures that any other menu screen is replaced.
    tag menu
    
    #SUCESSFUL BACKGROUND THAT CAN SHOW A ANIMATED MOVIE
    add Movie(size=(1200, 900))
    on "show" action Play("movie", "street_day_animated.ogv", loop=1)
    on "hide" action Stop("movie")
    on "replaced" action Stop("movie")
.......
The Hide and replaced methods don't seem to be working.

Crazy Li
Regular
Posts: 113
Joined: Fri Jan 03, 2014 3:35 pm
Contact:

Re: Animated Movie Backgrounds

#2 Post by Crazy Li » Sun Jun 29, 2014 2:39 am

Do you perhaps need to do a hide on the movie in addition to stopping it?

I know I needed to do that when using animated movies for regular background images via the "show" command...

User avatar
Aurelius
Newbie
Posts: 20
Joined: Fri Jun 06, 2014 6:56 pm
Projects: Secrets of the Ark, Degrees of Freedom
Organization: Bleau Eye Entertainment
Location: United States
Contact:

Re: Animated Movie Backgrounds

#3 Post by Aurelius » Sun Jun 29, 2014 10:53 am

Thank you Crazy Li, such a simple answer overlooked me *facepalm* :oops:

Post Reply

Who is online

Users browsing this forum: Google [Bot]