|Topic was automatically imported from the old Question2Answer platform.
Hi, I’m having a hard time deciding what is the best way to correctly animate my character:
I have the different animations (Idle, Jump, WhileJumping, Hurt, Die) in different files, now I have two ways to do the animation:
- Using an
AnimatedSpritewith all the animations in it and then change them by script
- Using the
My problem is that I want the character to be collidable when the jumping animation is almost ended.
If I use the
AnimationPlayer is easy to do this because the editor can edit the single frame at that single time with property keys, but the drawback is that the
AnimationPlayer can only have a single
Sprite as reference.
So if I want to use it I must create a
Sprite for every animation that has to be hidden or not. (Is this right?)
Otherwise if I want to use an
AnimatedSprite, I can just load all different animations and then, by code, change the
.play() with the animation I want but I will not have the same precision about editing the collision area during the execution of the animation.(Is this right?)
So what is the best to use? Suggestions?