PDA

View Full Version : Question On Making a Fighting Game... PLZ HELP



JoRdAnMaN
March 7th, 2008, 12:02 PM
Ok iv been trying to make a fighting game for a while now but i keep running into the same problems. Heres a link to an example of what im trying to make http://mk.trukmedia.co.uk/mkk.htm

What im having trouble doing is, making blood duplicate at the location of a hittest like in the game whenever you hit someone. Also combonations for special moves, etc... Or if you have any good scripts/tip for making a fighting game that would be great, im pretty much new to it so ill take as much help as i can get thanks.

DangerousDan
March 10th, 2008, 08:52 AM
This shouldn't be too hard if you're writing a fighting game.

Take the X and Y of the person getting hit and Add/Subtract crap till it gets around the point where you want it to hit.



if(hit) //do hitTest here
{
blood = attachMovieClip(); //throw the blood on the screen
blood._x = person._x-15; //play around with that number till it gets around where you want the blood to appear.
blood._x = person._y + 20; //same as above change this number around
}


Some things you can add:
You can check the X of the person hitting your char in order to blood appear in the right direction or maybe fly in the right direction.

You can check the Y of the person attacking you to decide where you want the blood to appear (if the person is higher, blood on head. if he is same, blood on body. if he is lower, blood on legs/waist/crouch)

Goodluck with your game, if it gets too hard (and it will if this is your first game) try something easier like pong, tetris, space invader maybe?:thumb:

Charleh
March 11th, 2008, 07:38 AM
Theres a small engine demo I made here

http://www.kirupa.com/forum/showthread.php?t=272699

It's got combos, and the hit areas appear at the end of the attackers fists, - there are no enemies but you can do a few moves and jump around.

Check it out and see if it can help you at all