Open danyooo opened 2 months ago
https://docs.godotengine.org/en/stable/tutorials/2d/2d_movement.html#rotation-movement-mouse This may work for having the sword follow the camera.
*need to finish off scaffolding
*Fixed Norby's code and setup in "Add-Sword-Hit-Hurtbox" Branch, most of the code is his just reorganized it and changed the types of some objects to work better. See: 0f22482
To stick sword to player, use "PinJoint2D", and apply torque force as the mouse moves
Gamepad player sword movement
This should contain the variables seen in the scaffolding, this should also move with the mouse // the right joystick on a gamepad.