Godot Version
4.2.1
Question
Hi all, so I’m making a 2d project that I want to have a parrying mechanic that would have the same feel as games like Sekiro: Shadows Die Twice or 9 Sols.
as of this post I’ve made a few enemies and I’ve begun refining my player character and I think I’m knowledgable enough in godot to make a parrying mechanic.
my initial thoughts for something simple that can be applied to basic enemies:
The parry should be a timer that triggers a variable when it starts and ends.
if said variable returns true and the player character is hit.
The player should not transition to hurt state but stay in the parry state and negate any damage taken and trigger an attack failed (recoil / punish / stun) to the enemy that should momentarily stop the enemy from transitioning to any other state. (this can be done by checking if the parry var returns true when the enemy attempts to deal damage)
So as to give the player a window of opportunity
and then probably also a parry cooldown timer to prevent invincibility from spamming parry
What it should look like:
- Player presses parry the moment before getting hit
- Parry timer and parry cooldown timer are started and var returns true while parry timer is active
- The enemy gets parried and is stunned momentarily
Am I missing anything important?
any and all suggestions, former experience with something like this and comments are appreciated