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.


renpy.scene

This clears out the specified layer, or 'master' by default. This is used in the execution of the `scene` statement, but only to clear out the layer. If you want to then add something new, like the `scene` statement would normally do when an image parameter is given, call after this.

Example

init:
    python:
        for slideindex in range(10):
            # images are named slide0.png...slide9.png
            renpy.image('slide%d' % slideindex,
                        'slide%d.png' % slideindex)

"And now, a slideshow"
python:
    for slideindex in range(10):
        # clear all images
        renpy.scene()
        
        renpy.show('slide%d' % slideindex)

        # set the transition for the pause interaction
        renpy.transition(dissolve)

        renpy.pause(3.0)

scene bg washington
"Wasn't that nice?"