2D Fighting Engine

Started by R4L, Wed 24/08/2005 09:12:49

Previous topic - Next topic

R4L

I don't really know if I should post it here... but whatever.

I am trying to make a 2D fighting engine like Prince of Persia. In my game, I am trying to make a HP GUI and an "Endurance" GUI that slowly drains and raises depending on the hits you get off. But, I haven't really thought of how it would work. And, the fighting only starts when an enemy is in the area. Is it possible to create a 2D fighting engine in AGS?

Rui 'Trovatore' Pires

Yes, it's fully possible. Ahmet has made one you can check out at the page whose url is in my link, look for a template called "Ahmet's FIghting Code" or something. I hope it gives you an idea.
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Menaze

Here is another 2D fight script.
I made it to provide a boxfight to my game.
It allows you to start a fight between player character and an enemy.
-You can declare lots of atributes f.e. health, distances, powerofhit in different
body regions (high hit ,middle hit, low hit), idleness time...
(the current enemy is a normal person, not too weak and not too strong)
-You can control the player by the keyboard (f.e.numpad)
-You can have lots of different enemys easily.
-Status bars included.
-enemy has "Artificial Intelligence", well it looks good for me...
-You do not need to write tons of code. One command starts the fight!
-You just need ONE view for the whole animation
(that's mainly why I had to do this, the other box scripts need thousands of
  views, here any character needs just one single view.)
-Actions are: hit(high,mid,low, each: 2 different animations possible),
                     parry(h/m/l),
                     step forward/backward,
                     getting hit(h/m/l),
                     dying(no more health)

Here is the script for you, it comes with documentation/help...

RTF-Document:
http://www.uni-weimar.de/~bockstet/menace/characters/Boxscript.rtf
Html-Document:
http://www.uni-weimar.de/~bockstet/menace/characters/BoxFightScript.htm


Have Fun *Menaze*

Rui 'Trovatore' Pires

I do believe I'll up it to my site. :)
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

MacGyver12345

would this engine work for a fate of atlantis style fight in the game?
I GOT A FEVER, AND THE ONLY PRESCRIPTION, IS MORE COWBELL!!

Khris

The links are dead and Menaze hasn't been active for two years.

You could write Rui a PM though.

Rocco

Fight Game was a topic of a coding contest a few years ago.

maybe you can extract some useful bits, or contact some developers to upload there sources again:
http://www.americangirlscouts.org/agswiki/Coding_Contest

Dualnames

There's Akhme's fighting engine, and it's pretty recent too!
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

SMF spam blocked by CleanTalk