The attack works from any direction due to my enemy’s using one large detection radius for attacking and being attacked. I found that the attack was a bit too difficult to line up when the enemies had a smaller hitbox for detecting the sword.
It is an unfortunate feature and I do plan to change it.
What I need to do is refactor the characters scripts using a state machine instead of the quick spaghetti code I threw together for the jam lol. The Boolean method is quick to code but very error prone. Also why the sword can get stuck attacking if you spam it.
thank you for playing and I am glad you enjoyed it despite its jank and being unfinished.
In future jams I will definitely adjust my scope to meet the time frame allotted.