[ad_1]
Recreation Growth Stack Alternate is a query and reply web site for skilled and impartial sport builders. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
The most effective solutions are voted up and rise to the highest
Requested
Seen
9 occasions
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.
lang-c
[ad_2]