How to detect a successful dodge?// How to sync a condition to another characters input

Thomas Billy 2 months ago in Melee updated by Marti (Lead Developer) 2 months ago 3

I am working with the melee and stats modules. I have my dodge system set up such that players orbit around the other one about 90 degrees. I would like to have it so that if the dodge was performed perfectly the player instead orbits behind the player. Is it possible to have some sort of perfect dodge system set up, similar to the perfect block? is it possible to set a condition to play a perfect dodge action, assuming the button was pressed at the right time in reaction to the enemy?

Unity version:
Game Creator version:

This would require for the enemy to collide with something or detect when the enemy attacks, check if the player is dodging and if both of them are somewhat close to each other.

You can create this check using Conditions, but you'll need to fine tune it. Unfortunately, there's no "automatic" way to do so. The perfect block is much easier because it actually collides with the player and we only need to check whether the player is blocking and facing the enemy (within a certain threshold).

Awesome thank you very much. would I put that extra collider on the weapon prefab? 

I would use it as part of the character. You don't want to detect when the weapon dodges an attack, but when a character does it.