Snaiel / Godot4ThirdPersonCombatPrototype

A prototype project for third person combat. Contains basics for player movement, camera, animations, combat, enemy AI, user interface, sound effects, and background music.
https://www.youtube.com/@Snaiel
MIT License
121 stars 17 forks source link

Fix rotating while at checkpoint after attack state #5

Closed Sod3n closed 2 months ago

Sod3n commented 3 months ago

Also for some reason attack finished (signal by animator?) still calling, so add additional check for if we attacking. May be fixable on animator side.

For reproduce bug reproduce just:

  1. Get close to checkpoint.
  2. Attack.
  3. Interrupt attack by interact with checkpoint(press E).
  4. Now you can rotate using move buttons(WASD).

It also true for interrupting attack by death(fall) so you be able to rotate while get up from checkpoint.

Snaiel commented 2 months ago

The keyframes still get called because of the animation blending. The animation still counts as playing when blending from the attacking animation to the sitting down animation so those keyframes that call the functions get activated.

Thanks for the bugfix!