How do I change player animation for a short period of time when player activates there transformation ability

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By megasman08

So the player has a transformation ability with their own set of attacks and animations from base to transformation. the problem is I’m not sure how I would implement the change through code and time it.

:bust_in_silhouette: Reply From: exuin

You can use a timer node to time the animation. Just connect the time out signal to your script. I don’t know how you’re doing the animations exactly, but you can probably swap them out by assigning a different resource to the animation property.

:bust_in_silhouette: Reply From: Ethan63

I think the easiest way is to use state machine on the player. Based on the current state, you switch between different animations.