documentation indexreference manualfunction index

renpy.seen_image

Function: renpy.seen_image (name):

Returns True if the named image has been seen at least once on the user's system. An image has been seen if it's been displayed using the show statement, scene statement, or renpy.show function. (Note that there are cases where the user won't actually see the image, like a show immediately followed by a hide.)

Example

if renpy.seen_image("eileen happy"):
    scene black
    show eileen happy
    $ renpy.pause()
else:
    scene black
    centered "This image is locked."

documentation indexreference manualfunction index