AnimatedSprite3D

    2D sprite node in 3D world, that can use multiple 2D textures for animation.

    Animations are created using a resource, which can be configured in the editor via the SpriteFrames panel.

    Tutorials

    Methods

    is_playing ( ) const
    void ( String anim=”” )
    void ( )
    • frame_changed ( )

    Property Descriptions

    The current animation from the resource. If this value changes, the frame counter is reset.


    Default0
    Setterset_frame(value)
    Getterget_frame()

    The displayed animation frame’s index.


    • frames

    Defaultfalse

    If , the is currently playing.

    • bool is_playing ( ) const

    Returns true if an animation is currently being played.



    • void stop ( )

    Stops the current animation (does not reset the frame counter).