if(EnemyAttack==0)
{
if(right==1)
{
ChangeAnimation("EventActor", "EnemyPunchRight", FORWARD);
}
else
{
ChangeAnimation("EventActor", "EnemyPunchLeft", FORWARD);
}
EnemyAttack=1;
}
if(EnemyAttack==0)
{
if(right==1)
{
ChangeAnimation("EventActor", "EnemyKickRight", FORWARD);
}
else
{
ChangeAnimation("EventActor", "EnemyKickLeft", FORWARD);
}
EnemyAttack=1;
}
if(canjump==1)
{
yvelocity-=10;
canjump=0;
}
right=1;
ChangeAnimation("EventActor", "EnemyWalkRight", FORWARD);
right=0;
ChangeAnimation("EventActor", "EnemyWalkLeft", FORWARD);
ChangeAnimation("EventActor", "EnemyStandRight", FORWARD);
ChangeAnimation("EventActor", "EnemyStandLeft", FORWARD);
ChangeAnimation("EventActor", "EnemyStandRight", FORWARD);
ChangeAnimation("EventActor", "EnemyStandLeft", FORWARD);
EnemyAttack=0;
if(right==1)
{
if(EnemyAttack==0)
{
x+=3;
}
}
else
{
if(EnemyAttack==0)
{
x-=3;
}
}
Users browsing this forum: No registered users and 1 guest