documentation indexreference manualfunction index

Movie

Function: Movie (fps=24, size=None, **properties):

This is a displayable that displays the current movie.

fps - The framerate that the movie should be shown at. (This is currently ignored, but the parameter is kept for backwards compatibility. The framerate is auto-detected.)

size- This should always be specified. A tuple giving the width and height of the movie.

The contents of this displayable when a movie is not playing are undefined. (And may change when a rollback occurs.)

Example

init:
    image movie = Movie(size=(352, 240))

label newscast:
    show movie at Position(xpos=420, ypos=25, xanchor=0, yanchor=0)
    show eileen happy

    play movie 'newscast.mpg'

    e "Ren'Py can even overlay rendered images on top of a movie, although that's
       more taxing for your CPU."

    e "It's like I'm some sort of newscaster or something."

    stop movie
    hide movie



documentation indexreference manualfunction index