# Animated Sprite Frame animation from a procedural spritesheet via AnimatedSprite2D. ```{raw} html ▶ Run in browser ``` **Tags:** `2d` `sprite` `animation` `spritesheet` ## What it demonstrates - AnimatedSprite2D driving frame playback from a single sheet texture - A spritesheet built procedurally as an RGBA uint8 ndarray (no external asset) - Named animations registered with add_animation(name, frames, fps, loop) - Switching animations and playback rate at runtime with play() - Looping vs one-shot playback (the one-shot anim freezes on its last frame) ## Source ```{literalinclude} ../../examples/features/2d/animated_sprite.py :language: python :linenos: ```