Attack problems

Talk about making games.

Attack problems

Postby Wayra Condor » Sat Dec 08, 2007 5:22 pm

I'm trying to make a geme similar to a fighting game, but with many enemies, so I have the folowing problem:
when I use an attack I can't make it attack both sides with the same key.
I got this code:

if(attack1==0)
{
if(*)
{
ChangeAnimation("Event Actor", "patada derecha", FORWARD);
}
if(*)
{
ChangeAnimation("Event Actor", "patada izquierda", FORWARD);
}
attack1=1;
}

The problem is with the *'s because I don't know what to put there to define which side the actor is looking.
Thanks for the help
User avatar
Wayra Condor
 
Posts: 27
Joined: Sat Dec 08, 2007 5:05 pm
Location: Cuzco, Peru
Score: 1 Give a positive score

Re: Attack problems

Postby Spidy » Sat Dec 08, 2007 5:54 pm

Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: Attack problems

Postby Bee-Ant » Tue Dec 11, 2007 1:04 pm

Hey, you post my link without got a permission of me :x :P
Oh..yeah...if you want to make more complex fighting game just ask me :mrgreen:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron