How can I put two animations with differents sprites on animationplayer?

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

Hi, I feel a little clumsy to ask this, but I try for hours to solve the problem and I can’t.
I have a Sprite node with lots of sprite inside (the body parts) for make an Idle animation. And I have Another Sprite node with others parts for the run animation.
Now, I have made the two animations and put them on an animation tree to make a state machine. When I press to play the scene It´s all ok ,the states work, except from that it show the two animations at same time, if I delete one of the sprites node the animation delete too. So i don´t know how to show only one animation, in the 2d scene I don´t find a propertie to put only one sprite or to hide one.
Before this don´t happen to me because I use to work with animate sprite node, but now I have body parts and some parts in diferents animations are different.

I don´t now if I explained myself well, in the 2d scene of the player I have the two nodes with the sprites

sorry for my english

:bust_in_silhouette: Reply From: Mrtoxa42

Hey, did you solve the problem?

Hi, I don’t remember, I was a long time ago. But reading the question I think that what you need is to animate the visible property of the node that you need to hide.
For example if you have a Sprite with run animation, in that animation, insert a key frame visible false for the other sprite that you need to hide

Pelli | 2022-03-09 19:54