Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: R4L on Wed 24/08/2005 09:12:49

Title: 2D Fighting Engine
Post by: R4L on Wed 24/08/2005 09:12:49
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?
Title: Re: 2D Fighting Engine
Post by: Rui 'Trovatore' Pires on Wed 24/08/2005 09:18:59
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.
Title: Re: 2D Fighting Engine
Post by: Menaze on Fri 26/08/2005 11:53:37
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*
Title: Re: 2D Fighting Engine
Post by: Rui 'Trovatore' Pires on Fri 26/08/2005 11:58:48
I do believe I'll up it to my site. :)
Title: Re: 2D Fighting Engine
Post by: MacGyver12345 on Thu 27/08/2009 14:25:12
would this engine work for a fate of atlantis style fight in the game?
Title: Re: 2D Fighting Engine
Post by: Khris on Thu 27/08/2009 14:37:07
The links are dead and Menaze hasn't been active for two years.

You could write Rui a PM though.
Title: Re: 2D Fighting Engine
Post by: Rocco on Fri 28/08/2009 12:01:51
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
Title: Re: 2D Fighting Engine
Post by: Dualnames on Fri 28/08/2009 13:47:10
There's Akhme's fighting engine, and it's pretty recent too!