How do I toggle between two animations playing while keeping them synchronized?

Godot Version

Godot 4.2.1

Question

How do I toggle between two animations playing while keeping them synchronized?

Okay. Let’s say that I have two animation players that both have an animation of the same length. How can I keep them synchronized while playing them. Also, how can I toggle between the animations playing while keeping them synchronized?

The reason why I’m asking this question is because I want to create a first person shooter than both a view model and a world model for an optional third person mode. I know it’s possible in Godot because I saw another indie dev do it in this video:

I did ask the dev about in the comment section and they said they used two animation players but, I didn’t want to ask for more details on how they did it. I can image myself coming up with a quick and dirty solution to implementing the feature but, I want to know what’s the the “proper”/optimal way to do it.

I don’t think this game has to sync first person and third person animations. I wouldn’t be surprised if third person used an AnimationTree where the first person model only used an AnimationPlayer.

Maybe you are hung up on only using one AnimationPlayer? I think the easiest solution is to always update both first and third person.

True. I think what would help me is if I took a break from what I was working on before and then work on a smaller project, that places a higher focus on this one feature.