• 3D
  • Aim a gun, while playing walking/running/idle animations at the same time

Hi,

I'm really new to godot and working with game engines overall, and now here's the first problem I couldn't solve by myself. I modeled and animated a character in Blender. It has a walk, running and idle animation and also one, where it simply holds is right arm forward (in order to aim a gun). Now i want to be able to mix the aiming-gun-animation into the other animations, while they are playing. And to dynamically switch between playing the aiming-animation and not doing it, while the other animations just do there thing without being interrupted.

So far I have a functioning character movement system, that includes those different moving animations. I didn't use an AnimationTree for that, just code to control the AnimationPlayer.

Now I want to include the gun aiming. So what would be a good solution for that?

I have only done this with 2D sprites, but I guess the idea will be the same with 3D; why don't you split the model in two, one for the legs and one for the torso/hands/head? And of course, make one child of another so they easily move together at the same time. That way the two models will have independent animations. The torso will play normally the idle/walk/run animation when it is not aiming and play the aim animation when it does, while the legs can still play their own animations when you are aiming and walking at the same time.