How do you add different weapons for the player with different attack animations?

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

Hi,

I am not sure how you would add different weapons (melee weapons) in game for the player to wield and also have different animations for each weapon.

How would you have the player pick up different weapons with each having his own attack/idle animations?

:bust_in_silhouette: Reply From: ArthyChaux

I think what you should go for is to have a scene for each weapon, and to instantiate it in the player node. You could have the same node path inside the weapon scene, and so you could access it in you player script.
I’m not sure of your question, so maybe it won’t help…

Thank you for your answer!

But how do you equip said weapon?
Do I have to create a whole new sprite sheet with the weapon in hand or is there a more efficient way of doing this?

DeadLy38 | 2020-06-01 19:36