Godot Version
4.6.2 stable
Question
Hi there,
I am reading the documentation/tutorial about 2D sprite animation, for retro-pixel art games.
If I understand correctly, there are several possibilities, and I’m a bit confused and lost:
- Sprite2D
- AnimatedSprite2D
- AnimationPlayer
- And apparently also AnimationTree which is a kind of state machine
… but there are also 3rd party assets for state machines.
My problem: I just don’t know which one is the best for my use case!
I prepare my spritesheet based on sprite resources, for instance megaman
Just imagine it’s cleaned up, packed, and in a regular grid, each frame is 32x32. But I can totally have 2 different animations per rows, or one single sprite alone for the jump. But for sure they are in a grid.
Then obviously, I will need a way to handle the states in my character controller. I have basic transitions and states (idle, jump, run, fire, run_fire…) .
Anyway, which method do you use for basic 2D sprite animation, and why? I am leaning towards AnimatedSprite2D and doing the rest myself with code/data. Instead of clicking many times in the editor tools, I would rather use config/data files, or resources, to create all the animation automatically. Is that possible?
Any good tutorial/video will be appreciated, thanks.