danyooo / SwordFightingGame

A physics-based sword fighting game
2 stars 0 forks source link

Create Sword #23

Open danyooo opened 2 months ago

danyooo commented 2 months ago

This should contain the variables seen in the scaffolding, this should also move with the mouse // the right joystick on a gamepad.

danyooo commented 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.

danyooo commented 2 months ago

*need to finish off scaffolding

danyooo commented 2 months ago

*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

danyooo commented 2 months ago

To stick sword to player, use "PinJoint2D", and apply torque force as the mouse moves

danyooo commented 2 months ago

https://github.com/danyooo/SwordFightingGame/discussions/41#discussion-6835670

danyooo commented 2 months ago

Gamepad player sword movement