renpy.get at list - Ren'Py Visual Novel Engine

documentation index ◦ reference manual ◦ function index

# renpy.get_at_list

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

This gets the at_list that was used to show a given image tag. name is parsed to get out the image tag, and the at_list corresponding to that tag is retrieved. If no image with that tag has been shown on the given layer, then None is returned.

## Example

This displays a different frame image for the character based on where the character is being shown on the screen.

    init:
        $ e = Character("Eileen",
            what_background=ConditionSwitch(
                "renpy.get_at_list('eileen') is None", "frame_none.png",
                "left in renpy.get_at_list('eileen')", "frame_left.png",
                "right in renpy.get_at_list('eileen')", "frame_right.png",
                "True", "frame_center.png"))

documentation index ◦ reference manual ◦ function index