Move - Ren'Py

documentation index ◦ reference manual ◦ function index

# Move

Function: | Move | (startpos, endpos, time, repeat=False, bounce=False, time_warp=None, **properties):

Move is similar to Pan, insofar as it involves moving things. But where Pan moves the screen through an image, Move moves an image on the screen. Specifially, move changes the position style of an image with time.

Move takes as parameters a starting position, an ending position, the amount of time it takes to move from the starting position to the ending position, and extra position properties. The postions may either be pairs giving the xpos and ypos properties, or 4-tuples giving xpos, ypos, xanchor, and yanchor. These properties may be given as integers or floating point numbers, but for any property it's not permissible to mix the two. repeat, bounce, and time_warp are as for Motion.

## Example

    "The following example moves a ball from the upper-left to the
     lower-right of the screen, taking 10 seconds to do so."

    show ball at Move((0.0, 0.0), (1.0, 1.0), 10.0,
                      xanchor="center", yanchor="center")

documentation index ◦ reference manual ◦ function index