This page is out of date

You've reached a page on the Ren'Py wiki. Due to massive spam, the wiki hasn't been updated in over 5 years, and much of the information here is very out of date. We've kept it because some of it is of historic interest, but all the information relevant to modern versions of Ren'Py has been moved elsewhere.

Some places to look are:

Please do not create new links to this page.

Using animated movies as backgrounds

Usually, visual novel backgrounds are relatively static pictures. However, Ren'py includes the capability to use an animated movie as a background instead. This can allow for more detailed special effects than are possible simply by using ATL.

First, create your animated background by adding special effects to your background image with specialized software. This will require video editing experience. Make sure this video loops seamlessly and has a silent audio track (but still has an audio track). Then, convert it to .OGV format for best results.

Next, create the movie object somewhere in your script. In this case, the game's resolution is 1280x720.

 image movie = Movie(size=(1280, 720), xpos=0, ypos=0, xanchor=0, yanchor=0)

Finally, play your movie in a loop and then show the movie object in order for it to show up as the background. This movie fades in with a dissolve and then gets hidden.

 label start:
    scene black
    with Pause(1)

    play movie "movie_background.ogv" loop
    show movie with dissolve

    show person at center with dissolve
    person "I'm in front of an animated background!"

    hide movie with dissolve
    stop movie