Reference Manual: (offline | online) Quickstart: (offline | online)

# renpy.hide

Function: renpy.hide( | name, layer='master')

This finds items in the given layer (or 'master' if no layer is given) that have the same name as the first component of the given name, and removes them from the layer. This is used to execute the hide statement.

name - The name of the image to hide from the screen. This may be a tuple of strings, or a single string. In the latter case, it is split on whitespace to make a tuple. Only the first element of the tuple is used.

layer - The layer this operates on.

## Example

    init:
        python:
            renpy.image(('ctc',), anim.Blink("arrow.png"))
            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)
            if slideindex % 2:
                renpy.show('ctc', at_list=[right])

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

            renpy.pause(3.0)

            renpy.hide('ctc')

    scene bg washington
    "Wasn't that nice?"

Note: in 5.5.4, the renpy.image line should be: renpy.image(('slide%d' % slideindex,), 'slide%d.jpg' % slideindex)

Reference Manual: (offline | online) Quickstart: (offline | online)