How is fight games programmed?
A kick or a punch consists of frames and one possible way to check for contact is to check if circles overlap. Circles on attack foot and circle on opponent head/stomach?
This is a simple and possible way to check for contact. Is there better way to solve the punch/contact moment?
Thanks in advace
About this post
- Posted
- Archived
- Deleted on
- Score
- 0 · 33% up
- Kind
- Text
- ID
- 1js41nb
14 comments
I'm pretty sure most fighting games just use hitboxes and hurtboxes (which is what you've described here, but knowing the standard term will help you look for more info)
Collision checks don't have to be circles, they can be polygons. And they don't even have to be the same frame to frame, they can change size and shape!
This was a useless reply
Thank you! I'm trying to do the best with what your post is providing. If you want to answer the problem of "how do things collide?", which, I think is what you're asking, it's unclear, the answer is "use some form of collision shapes and primitives".