PDA

View Full Version : AI needed



touch_of_life
May 3rd, 2006, 06:20 AM
Hi everyone,
New here to kirupa and was wondering whether anyone could help me make a Mortal combat type of engine.
For those of you who dont know mortal kombat its a basic fighting game where you have to get rid of you enemy by whatever means.(I suppose most people would already know that).
I am a novice at flash and know actionscript(not the maths part of it) to an acceptable level.
Any Help is much appriciated and praised and anyone who helps will definitely get the credit
the thing is that i need the Artificial Intelligence(AI)
Can someone tell or show me how to add some sense to the Knuclehead
Thanking you much for your time,
John

Nich
May 3rd, 2006, 08:10 AM
Well it really depends on what kind of fighting system you have. Games like mortal combat tend to have a rock paper scissors type thing going on where one move will stop another move which will stop another. In that case, you should have the opponant note the number of times that the player has used a certain attack and counter appropriately. Of course, you don't want AI that is invincible, so I don't suggest feeding the key presses to the AI, although that's another way to do it

InfestedDemon
May 3rd, 2006, 03:28 PM
um dude, (Maker of this engine). If you manage to do this, send me the .FLA as i was looking for this for ages.

Joppe
May 3rd, 2006, 05:26 PM
This is not good at all. But its a start, so please play around with it and see if you can come up with something brilliant :thumb2:

touch_of_life
May 3rd, 2006, 08:49 PM
Thanks for replying everyone
_______________________________
Joppe:
thanks fot the fla it really helps
_______________________________
ryanshah1:
sure if it comes out well i'll post the fla here!
(it might take me some time though)
_______________________________
nich:
If taht was so how do opponents fight in different difficulty levels like if you choose hard they tend to move more intelligently
________________________________
By the way can someone also tell me hou to use a double tap to make the player jump foward? you know if you press right twice he suddenly makes a run

Thanks

Nich
May 3rd, 2006, 09:09 PM
As far as I can tell, in most fighting games they up the difficulty by making the opponent attack/block more often. Also they feed the key combos the player is using. For example, you have attack a, which the computer can block with attack b. If you do the button combo for a, then a harder computer will be more likely to do b. You can also increase the difficulty by increasing the complexity of the combos the computer attempts. If it's not a game with complex chained combos, then you can still use this method by using your regular attacks in combination (using mortal combat as an example, sub zero on easy might freeze then punch you, while sub zero on hard might freeze you then uppercut you twice (once in the air))

touch_of_life
May 3rd, 2006, 11:22 PM
I'm just asking but hasnt anyone ever done anything like this before,has anyone seen anything quite like this in any site????
Just a thought:huh:

touch_of_life
May 4th, 2006, 12:22 PM
Dear joppe,
Hope you see this.
I was hoping if you could help me out a bit with jumping for the ai i am working to make it a function.
In the below swf you can see a 'jump' button.the thing is that when you press the button it generates a
random number and depending on that moves in a direction(ie left or right).the thing is taht once you land
you keep walking away to glory.Can you help me???
Thanks
BTW you dont have to be joppe to help! its just a part of his engine so its posted to him!

Skinny_T
May 4th, 2006, 12:41 PM
The coolest fighting game engine I have kickin around (this isn't mine. Many thanks to Marmotte of flashkit for this one) is this:

http://www.geocities.com/skinny_man21/fighting_game.html

I added the scrolling and the timer but study pulled me away from it. From memory the creator did a fair bit more to it. I'd have to track him down and see whats new though.

Joppe
May 4th, 2006, 02:27 PM
^^ What is that code? I mean what have you done? And what is this supposed to do? if (jumping<>1) {
And why do you have 6+ onenterframes ?:S
And what exactly is it you want to do?

touch_of_life
May 5th, 2006, 12:41 AM
ok now try cleaned it up a bit

Pasquale
May 5th, 2006, 04:31 AM
The coolest fighting game engine I have kickin around (this isn't mine. Many thanks to Marmotte of flashkit for this one) is this:

http://www.geocities.com/skinny_man21/fighting_game.html

I added the scrolling and the timer but study pulled me away from it. From memory the creator did a fair bit more to it. I'd have to track him down and see whats new though.
NICE FIND :)

hybrid101
May 5th, 2006, 05:30 AM
woah, thanks skinny_t!
i've tried making an engine, but it was way too buggy:)

Skinny_T
May 6th, 2006, 06:06 AM
I looked into what he did with the engine and he made a pretty good game out of it. totally original artwork and he also implemented weapons. I'm not home atm so i dont have the link but pm me if you want it.

lone_wild_wolf
May 23rd, 2006, 12:48 AM
you mean something like:
http://www.newgrounds.com/portal/view/218074