renpy/doc/reference/functions/Position - Ren'Py

documentation index ◦ reference manual ◦ function index

# Position

Function: | Position | (**properties):

Position, when given position properties as arguments, returns a callable that can be passed to the "at" clause of a show or scene statement to display the image at the given location. See the Position Properties section to get a full explanation of how they are used to lay things out.

## Example

    init:
        left = Position(xpos=0.0, xanchor='left')
        center = Position(xpos=0.5, xanchor='center')
        right = Position(xpos=1.0, xanchor='right')

        top = Position(xpos=0.5, xanchor='center', ypos=0.0,
                       yanchor='top')

    show eileen happy at left

documentation index ◦ reference manual ◦ function index