mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-08 10:10:54 +03:00
Add 2D animation tutorial
This commit is contained in:
26
tutorials/2d/2d_sprite_animation.rst
Normal file
26
tutorials/2d/2d_sprite_animation.rst
Normal file
@@ -0,0 +1,26 @@
|
||||
.. _doc_2d_sprite_animation:
|
||||
|
||||
2D Sprite Animation
|
||||
===================
|
||||
|
||||
Introduction
|
||||
------------
|
||||
|
||||
In this tutorial, you'll learn two different ways to create 2D animated
|
||||
characters. Typically, when you create or download an animated character, it
|
||||
will come in one of two ways: as individual images or as a single spritesheet
|
||||
containing all the animation's frames. Depending on which type of assets you
|
||||
have, you can choose one of the following solutions.
|
||||
|
||||
First, we'll use :ref:`AnimatedSprite <class_AnimatedSprite>` to
|
||||
animate a collection of individual images. Then, to use a spritesheet, we'll
|
||||
use :ref:`AnimationPlayer <class_AnimationPlayer>` along with the _Animation_
|
||||
property of :ref:`Sprite <class_Sprite>`.
|
||||
|
||||
Individual images with AnimatedSprite
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Sprite sheets with AnimationPlayer
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
@@ -13,3 +13,4 @@
|
||||
2d_lights_and_shadows
|
||||
2d_meshes
|
||||
custom_drawing_in_2d
|
||||
2d_sprite_animation
|
||||
|
||||
Reference in New Issue
Block a user