Warning

This wiki is very out of date, and only exists for historical reasons. For more modern information, see the new documentation and cookbook forum.

renpy/doc/reference/functions/Animation

From Ren'Py Visual Novel Engine

< renpy | doc | reference | functions(Redirected from Animation)
Jump to: navigation, search
This function is deprecated.
This special-purpose function has been obsoleted by ATL. While it has been retained for compatibility with older games, it may interact poorly with ATL code.


Animation

Function:
Animation (*args, **properties):

A Displayable that draws an animation, which is a series of images that are displayed with time delays between them.

Odd (first, third, fifth, etc.) arguments to Animation are interpreted as image filenames, while even arguments are the time to delay between each image. If the number of arguments is odd, the animation will stop with the last image (well, actually delay for a year before looping). Otherwise, the animation will restart after the final delay time.

anim_timebase - If True, the default, use the animation timebase. Otherwise, use the displayable timebase.

Example

init:
    image animation = Animation("frame_1.png", 0.25,
                                "frame_2.png", 0.25,
                                "frame_3.png", 0.25)


Personal tools