Page 1 of 1

Fighting Game Demo

PostPosted: Tue Apr 13, 2010 11:48 am
by Bee-Ant
Here, a fighting game demo I made...
Take a look the code to figure out how it works...
I have made it as simple as possible...
Enjoy :D
Screenshot.png
Ize vs Ize

Re: Fighting Game Demo

PostPosted: Tue Apr 13, 2010 1:07 pm
by Hblade
Cool game, bee :D

Re: Fighting Game Demo

PostPosted: Tue Apr 13, 2010 1:11 pm
by Bee-Ant
Thanks :D
I hope this is useful for anyone working on fighting game :D

Oh yah, this is the control :
ARROW LEFT : Move Left
ARROW RIGHT : Move Right
ARROW UP : Jump
SPACE : Attack

Re: Fighting Game Demo

PostPosted: Tue Apr 13, 2010 1:13 pm
by Hblade
This is very helpfull ^.^ Now I can probably integrate this type of a battle system in an RPG I'll make after I make Sonic Chao :D

Thanks again ^.^ + 1

Re: Fighting Game Demo

PostPosted: Wed Apr 14, 2010 4:09 am
by krenisis
YES bee-ant this is exactly what i needed this is great thanks alot.

Re: Fighting Game Demo

PostPosted: Wed Apr 14, 2010 4:17 am
by krenisis
Ok i read the code and have a question. What makes the enemy keep chasing you?

Re: Fighting Game Demo

PostPosted: Wed Apr 14, 2010 10:26 am
by Bee-Ant
I'm glad to hear a question :D
krenisis wrote:Ok i read the code and have a question. What makes the enemy keep chasing you?

Look the code in the : p2 -> Timer -> Walk
It means, when this timer (Walk) occur...
1. if p2 x coordinate smaller than p1 (he's in the left side of p1), change p2 direction to right (direct=1)
2. if p2 x coordinate greater than p1 (he's in the right side of p1), change p2 direction to left (direct=-1)
That's how it works :D

Re: Fighting Game Demo

PostPosted: Wed Apr 18, 2012 9:46 pm
by Nextoy
So I edited the game size to see how it would work with the size I have planned for mine (hope you don't mind me just taking this as my game's engine and building it up to what I need) and now he wont move past the half way point on the screen. Worst part is I can't figure out what's causing it. :/

Either way though this is good. Gives me a basic understanding of what needs to be done for my project. +1