I am trying to make a Game for a GameJam and as i an new I cant get how i can make the player spin when a you hold a button, also i cant figure out how i can make the player spin charge and then throw the sword like a boomerang which will come back to the player after reflecting off surfaces. I need help with the code and the hitboxes for the boomerang attack as well as the attack in which the player spins with the sword in his hand and his speed increases with the time you spin the sword. I am making it in the Godot Engnine4 and am using GDScript.
I think seeing this page will help you:
Listening to player input — Godot Engine (stable) documentation in English
Thanks but i wanted the player to spin in place like a balle dancer.
Then you can check out 2D Sprite Animation.