$begingroup$

I’m engaged on a 2D combating sport engine in C++ and SDL2 and all the things to this point goes swimmingly. I’ve hitboxes, hurtboxes, and pushboxes as you’ll count on of a typical combating sport. How precisely would I make the pushboxes behave like they do in Road Fighter 3 or another fashionable combating sport? By this I imply that if each individuals are pushing one another, no one strikes. If somebody is transferring and the opposite is not, then the transferring participant pushes the idle participant. To date I do know that the system is extra lax than correcting the place to be proper outdoors of the opposite individual’s pushbox each body, as there could be some overlap in SF3 and different video games. I simply do not know easy methods to implement one thing like this and I have not been capable of finding a passable reply on-line. How ought to I’m going about implementing this? Thanks.

$endgroup$


You need to
log in to reply this query.