Currently, whether you attack diagonally down or diagonally up or plain horizontal, it is irrelevant - except the hitbox of course.
The above monster requiring a diagonal down attack to be hit in equal elevation, is a good example of hitbox importance.
Ideally, dash attacks would have more horizontal knockback depending on the velocity/influenceX
As for angles?
Diagonal down should "dig" an enemy, hence, more knockbackY, less knockbackX.
Diagonal up should either have more knockbackX than plain horizontal attack (1.0,0.0)
Or simply push enemies diagonally upwards.
With the above, each attack input would matter. The only difference right now is the hitbox, which is dead obvious to attack an enemy.
CODING
I would have to refactor TakeDamage() on enemies, as they make absolutely no use of knockbackPowerX and knockbackPowerY...
Hence, it fits with the general planned enemy refactoring, whose main goals are:
Each attack to have seperated AI detect hitbox, and damage hitbox
Splitting flying and ground units
Decouple state machine from physics.velocity
Remove the IDamageable inheritance (interfaces in Unity were a mistake, as you cannot override them without spagghetti)
Fix the sidewalled bug
Changing the movement, health/damage and monster attacks? Its easier to remake enemies, than refactor 70% of the code.
So, as you understand, simply "attackInput changes enemy push" would take a full month or so - most of the time spent on debugging.
This is a huge undertaking for such little results. Huge backend change, for almost no front-end difference, hence it is delayed forever.
P.S. Related to this issue is how spellword "Push" works, and could be expanded upon.
Currently, whether you attack diagonally down or diagonally up or plain horizontal, it is irrelevant - except the hitbox of course.
The above monster requiring a diagonal down attack to be hit in equal elevation, is a good example of hitbox importance.
Ideally, dash attacks would have more horizontal knockback depending on the velocity/influenceX As for angles?
Diagonal down should "dig" an enemy, hence, more knockbackY, less knockbackX. Diagonal up should either have more knockbackX than plain horizontal attack (1.0,0.0) Or simply push enemies diagonally upwards.
With the above, each attack input would matter. The only difference right now is the hitbox, which is dead obvious to attack an enemy.
CODING I would have to refactor
TakeDamage()
on enemies, as they make absolutely no use ofknockbackPowerX
andknockbackPowerY
... Hence, it fits with the general planned enemy refactoring, whose main goals are:Changing the movement, health/damage and monster attacks? Its easier to remake enemies, than refactor 70% of the code. So, as you understand, simply "attackInput changes enemy push" would take a full month or so - most of the time spent on debugging. This is a huge undertaking for such little results. Huge backend change, for almost no front-end difference, hence it is delayed forever.
P.S. Related to this issue is how spellword "Push" works, and could be expanded upon.