How can I play 2 animations at the exact same time?

Godot Version

Godot 4.2

Question

So, I’m still working on a pong game and I decided to bring some life into the game (Since the core mechanics are practically done) By adding animations! But I’m having a problem trying to blend in 2 of my animations (Idle and Score_Change for the Score counter) with the animation tree

This is the video I’m following, And this is what I’m getting:


What I want is for the Score_Change animation to play at the same time the idle animation is still moving up and down (since this just moves to another animation and the position values aren’t shared). How would I achieve this?

For some more context on the problem I’m having, think of it as if a paddle was moving left and right, and when the player lands on it, it rotates a little bit up and down from its sides while the paddle is still moving (like a jiggle that slowly comes to a stop). What I’m trying to achieve is similar to this

Any suggestions or advice on how I could achieve this?

I think the score_change animation is not set to loop in the animation player, that’s why it only plays once?

edit: actually I think the problem is that you need to use the Add2 node instead of Blend2

1 Like

That could work. I’ll try it out and see if it does. Thanks :smiley:

1 Like

It Works! But when I set the add2 to 1 again, it doesn’t work.

How do I fix that, is there a way to reset the Score_Change animation? Because when it finishes it doesn’t go back to 0.

Is it set to loop in the animation player?

Sorry if I was gone for a while I needed a new internet connection. Just letting you know that I actually tried setting it to loop in the animation player while I was offline, and it worked. Thanks for helping me out :smiley:.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.