Thanks for sending the project! I was able to see both of these, and I think both can be fixed in your project.
For the drill swing restarting in the air, it’s the node called “Node” inside DrillRoll_3. It has the JatkRotateToMovement script on it, and its Node To Rotate is empty, so it turns the whole DrillRoll_3 to face the direction it’s moving. On the ground the drill isn’t moving, so nothing turns. In the air the drill moves along with the player, so the whole swing turns to face up while rising and flips to face down while falling. I think that flip is what looks like the animation starting over.
To fix it, delete that node or set its Rotation Speed to 0. If you wanted it to turn only one part of the drill, set Node To Rotate to that part instead.
While testing I also noticed the drill shows up for a split second in the wrong spot before the swing starts. That’s the pose the drill has in the scene itself, and it shows until the UP state starts SwingUP. This hides the drill until the swing actually starts:
- Open DrillRoll_3.tscn, click Swing > Sprite2D, and turn Visible off.
- Click AttackCollision (under Sprite2D > AttackArea2D) and turn Disabled on, so the hitbox can’t hit anything in that wrong spot either.
- Click AnimationPlayer, open SwingUP, and put the timeline at 0. Add a key for Sprite2D’s Visible there, then click the key and set it to On.
- Do the same in SwingDOWN.
- Save, and check that Sprite2D’s Visible is still off in the scene.
Both animations already turn the hitbox back on at 0, so nothing else needs to change.
For ChosoAttack repeating, the shot is attached to the player as a child, and in AttackC it moves straight up. It’s being told to face the way it moves, which is up, and also to face the same way as the player, which is left or right. That second one comes from Sync Facing Direction in its ChildSettings, which is on by default. Straight up isn’t left or right, so I think its facing keeps switching back and forth, and every switch starts AttackC over from the beginning. AttackC only moves to End when the animation finishes, so it never gets there and the shot never disappears. That would also explain why any direction other than straight up works fine.
To fix it, open ChosoAttack’s Visual Script, click the AttackC state, and turn on Ignore Facing Direction Changes. AttackC then plays once and goes to End like it should.