Attack problems
Posted: 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
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