Hi! I’m trying to make the swing attack animation for my character look_at() the position of my current mouse position, but I’m having some difficulties playing the entire animation towards that direction.
The animation consists of 6 property tracks, position + rotation for the “attack texture” (the white swing effect going away from the player), position + rotation for the actual weapon swinging (in this case, a stick swinging upwards) and position + rotation for the player HurtBox, which is the yellow square.
I’ve already tried using look_at(get_global_mouse_poisition()), but I can’t assign it directly to the AnimationPlayer node, and assigning it just to the sprite nodes for the weapon and the attack texture would just rotate them on themselves, not change the direction at which the texture is going (for example, if I would click above the player, it would still just move right because of how AnimationPlayer set it up to move towards position.x)
How would I go about rotating this entire animation towards the global_mouse_position? Is there an easier way to do this? Thank you in advance.