Godot Version
4.3.stable.steam
Question
I’m attempting to make a dagger with a stabbing motion, similar to the way that a shortsword in Terraria functions, where the dagger will stab in the direction of the cursor’s location. Online I’ve found a variety of “baked” animations which solve this issue by having different animations for 8 or so directions, but I’m looking for a full 360 solution, which would be incredibly tedious to solve in this way.
What I currently have is a dagger that follows the direction of the cursor’s location, to allow for more sword-like swings at the short range.
My best idea for how to make this would be to hide the dagger node, create a temporary dummy dagger which is scripted to make the stabbing motion needed, then delete it and show the dagger node. However, that seems inelegant and I’m reluctant to actually do that unless I know that’s likely the best implementation.