Computer Science Canada

collision detection in a fighting game

Author:  VB_User [ Tue Apr 01, 2003 8:22 am ]
Post subject:  collision detection in a fighting game

Hey i am making a mortal kombat clone in turing and i am just wondering about something. I was thinking of just using a rectangular collision detection which would work but probably isnt the best way. If anyone has any suggestions on another way i could do it let me know.

Thanks

Author:  Tony [ Tue Apr 01, 2003 10:06 am ]
Post subject: 

well using circular collision detection would work better (its also covered in the tutorials).

this way you can set up bones throughout your character, filled with circular detectors along it, making a more realistic colision detection.

what I mean is like this:

-----
OOO>O
-----

that is a shitty diagram of the arm, anyway, Os are the rangest of colision detection, so you can set them up quite nicely. They just have to follow the arm, so you might have to employ some trig for it.

Author:  Delta [ Tue Apr 01, 2003 12:43 pm ]
Post subject:  good idea

I never thought of checking collision like that for my fighting game maybe I will rewrite it. THNX for the idea Very Happy

Author:  VB_User [ Tue Apr 01, 2003 3:48 pm ]
Post subject: 

I dont think i have time for that kind of complicated stuff. I mean i got 9 fighters and would have to have alot of circles for every frame of animation. What type of detection did you use delta?

Author:  Delta [ Wed Apr 02, 2003 9:22 am ]
Post subject:  whatdotcolour

I had colour detection using whatdotcolour to check if one colour is on top the other I just checked at the tip of the foot and fist. The players couldn't get too close so it still worked nicely.

Not the most efficient way to do it but it worked.

Author:  VB_User [ Wed Apr 02, 2003 3:40 pm ]
Post subject: 

Well i made a test engine that uses the rectangular dectection and it works pretty good. I actually am supprised at the results. I think that even the original mortal kombat may have used something similar from a few tests i did.

Author:  Delta [ Thu Apr 03, 2003 9:59 am ]
Post subject:  Post it

You should post your mortal kombat clone. That would be cool Very Happy

Author:  VB_User [ Thu Apr 03, 2003 4:12 pm ]
Post subject: 

i will when its totally finished. I have to rewrite a few parts of it and also add more characthers.


: