Closed Qazzquimby closed 3 years ago
Taking movement into account may be difficult. Maybe have pessimistic movement assuming the opponent moves optimally to avoid the attack? Will eventually need to account for purposeful movement on the ai's part, like short hopping at someone to air hit them.
I think this has two parts
[ ] Very quickly getting if any attack would hit (maybe using rough rectangular collision). This is for checking when the expected next hit will land from the opponent, and maybe rapidly filtering options to avoid those that will miss.
[ ] get if the current attack will hit, if one is in progress. This can be more precise because there's only one to test and it's important. This is for checking if you should parry. If someone is doing an attack that will miss, maybe the ai can take advantage of the end lag period.