.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_SpriteFrames: SpriteFrames ============ **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Sprite frame library for AnimatedSprite. Member Functions ---------------- +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_frame` **(** :ref:`Object` frame, :ref:`int` atpos=-1 **)** | +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_frame_count` **(** **)** const | +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Object` | :ref:`get_frame` **(** :ref:`int` idx **)** const | +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_frame` **(** :ref:`int` idx, :ref:`Object` txt **)** | +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_frame` **(** :ref:`int` idx **)** | +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear` **(** **)** | +------------------------------+--------------------------------------------------------------------------------------------------------------------------------+ Description ----------- Sprite frame library for :ref:`AnimatedSprite`. Member Function Description --------------------------- .. _class_SpriteFrames_add_frame: - void **add_frame** **(** :ref:`Object` frame, :ref:`int` atpos=-1 **)** Add a frame (texture). .. _class_SpriteFrames_get_frame_count: - :ref:`int` **get_frame_count** **(** **)** const Return the amount of frames. .. _class_SpriteFrames_get_frame: - :ref:`Object` **get_frame** **(** :ref:`int` idx **)** const Return a texture (frame). .. _class_SpriteFrames_set_frame: - void **set_frame** **(** :ref:`int` idx, :ref:`Object` txt **)** .. _class_SpriteFrames_remove_frame: - void **remove_frame** **(** :ref:`int` idx **)** Remove a frame .. _class_SpriteFrames_clear: - void **clear** **(** **)** Clear the frames.