[2D][SpriteSheet][Animation] Changing sprite animations with different sprite sheets #5058
Answered
by
hymm
The-DevBlog
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
hymm
Jun 21, 2022
Replies: 1 comment 10 replies
-
you probably want to modify the components on the Player entity directly rather than spawning as a child. Linked is the code I've used for sprite sheet animation in my simple game. |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
The-DevBlog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you probably want to modify the components on the Player entity directly rather than spawning as a child.
Linked is the code I've used for sprite sheet animation in my simple game.
https://github.com/hymm/bevy_test_game/blob/main/src/animation.rs#L59-L60