.. 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_animation` **(** :ref:`String` anim **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`add_frame` **(** :ref:`String` anim, :ref:`Texture` frame, :ref:`int` atpos=null **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear` **(** :ref:`String` anim **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`clear_all` **(** **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_animation_loop` **(** :ref:`String` anim **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_animation_speed` **(** :ref:`String` anim **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture` | :ref:`get_frame` **(** :ref:`String` anim, :ref:`int` idx **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_frame_count` **(** :ref:`String` anim **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`has_animation` **(** :ref:`String` anim **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_animation` **(** :ref:`String` anim **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`remove_frame` **(** :ref:`String` anim, :ref:`int` idx **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`rename_animation` **(** :ref:`String` anim, :ref:`String` newname **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_animation_loop` **(** :ref:`String` anim, :ref:`bool` loop **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_animation_speed` **(** :ref:`String` anim, :ref:`float` speed **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_frame` **(** :ref:`String` anim, :ref:`int` idx, :ref:`Texture` txt **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`Array` **animations** - :ref:`Array` **frames** Description ----------- Sprite frame library for :ref:`AnimatedSprite`. Member Function Description --------------------------- .. _class_SpriteFrames_add_animation: - void **add_animation** **(** :ref:`String` anim **)** .. _class_SpriteFrames_add_frame: - void **add_frame** **(** :ref:`String` anim, :ref:`Texture` frame, :ref:`int` atpos=null **)** .. _class_SpriteFrames_clear: - void **clear** **(** :ref:`String` anim **)** .. _class_SpriteFrames_clear_all: - void **clear_all** **(** **)** .. _class_SpriteFrames_get_animation_loop: - :ref:`bool` **get_animation_loop** **(** :ref:`String` anim **)** const .. _class_SpriteFrames_get_animation_speed: - :ref:`float` **get_animation_speed** **(** :ref:`String` anim **)** const .. _class_SpriteFrames_get_frame: - :ref:`Texture` **get_frame** **(** :ref:`String` anim, :ref:`int` idx **)** const .. _class_SpriteFrames_get_frame_count: - :ref:`int` **get_frame_count** **(** :ref:`String` anim **)** const .. _class_SpriteFrames_has_animation: - :ref:`bool` **has_animation** **(** :ref:`String` anim **)** const .. _class_SpriteFrames_remove_animation: - void **remove_animation** **(** :ref:`String` anim **)** .. _class_SpriteFrames_remove_frame: - void **remove_frame** **(** :ref:`String` anim, :ref:`int` idx **)** .. _class_SpriteFrames_rename_animation: - void **rename_animation** **(** :ref:`String` anim, :ref:`String` newname **)** .. _class_SpriteFrames_set_animation_loop: - void **set_animation_loop** **(** :ref:`String` anim, :ref:`bool` loop **)** .. _class_SpriteFrames_set_animation_speed: - void **set_animation_speed** **(** :ref:`String` anim, :ref:`float` speed **)** .. _class_SpriteFrames_set_frame: - void **set_frame** **(** :ref:`String` anim, :ref:`int` idx, :ref:`Texture` txt **)**