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
134 stars 20 forks source link

Fix backstub #6

Closed Sod3n closed 4 months ago

Sod3n commented 4 months ago

Problems

  1. After attack using backstab you can:
    • interupt it using dodge
    • move while after victim killed, but before animation ends.
    • sometimes you can miss when use backstab
    • spam attack cause weird behaviour
  2. Moving using WASD while backstabing cause player to slide after it. Also true for dizzy finisher. ("can rotate" of rotation component keeps at false)

Solution

Now backstab state splits into two substates:

Additionaly we resets some variables on enter Idle state which fixes problem 2. (Lazy but works)