Sword rotate around player

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

I want to make my player sword rotating (and attacking) like in Archvale game (easy to find on youtube),
but i can’t manage and maybe someone can help me to find how it works :slight_smile:
thank you for the help

:bust_in_silhouette: Reply From: EmanuelOzorio

I dont found videos of the attack mentioned. But, if I understand your question you can do this:
Create a Position2D as a child of the player node and put in the center of the player.
Create a Sprite, for example, with the sword texture as a child of the Position2D created previously.
Put the Sprite in the initial position.
Create a AnimationPlayer and chage the rotation of the Position2D.

:bust_in_silhouette: Reply From: FireBlo33om

The answer to this question is exactly what you are looking for:

I was struggling to find an answer myself, so I might as well help any other stragglers out there, even if I am rather late to the question : )