Hey guys. I'm working on a twin stick project (like nuclear throne, enter the gungeon...), so the weapons rotate according to the mouse position. I'm trying to make the melee weapons swing when the player presses "shoot", like a sword, or make a spear go in the direction of the target and then back (like in the Brotato game). I'm trying to use tween, but I'm having some problems.
1. How do I make the sword swing attack to the right side and then back? I know I can use the pingPong tween effect, but how do I make the movement? It always stays at the angle of the mouse.
I literally have no idea where to start. Do you have any suggestions?