So working on a 2d fighting game and wondering whats a good method for detecting punch collision. Ive got a few questions on how to implement the attack stuff. Im using box2d (and Libgdx) for the movement and collision detection.
Best way to do punch and detection? Currently thinking of creating a fixture on the body and destroying it after a little time with a Timer
How to do a multipunch combo, basically if they hit the button 3 times in a row it does a combo attack? Think creating a variable that gets added +1 when they hit the button and a timer resets it back to 0 after a certain amount of time
Prevent attacks during the attack animation to prevent button jamming? Currently using state status so need to figure out the best way to change the state to/from attacking