- Code: Select all
velocity>-8) {yvelocity=-8;}
if (yvelocity>-8){yvelocity=yvelocity-8;}
if (animindex==2 | animindex==4 | animindex==6){ChangeAnimation("Event Actor", " your jump right animation ", FORWARD);}
if (animindex==1 | animindex==3 | animindex==5){ChangeAnimation("Event Actor", "your jump left animation ", FORWARD);}
A keydown event with a repeat:
- Code: Select all
if (animindex==2 | animindex==4 | animindex==6){ChangeAnimation("Event Actor", " your jump right animation ", FORWARD);}
if (animindex==1 | animindex==3 | animindex==5){ChangeAnimation("Event Actor", " your jump left animation ", FORWARD);}
A keyup event:
- Code: Select all
{
Jump = 0;
switch (animindex){
case 4 : ChangeAnimation("Event Actor", "your stop right animation", FORWARD); break;
case 5 : ChangeAnimation("Event Actor", " your stop left animation ", FORWARD); break;
}
}
change the animindex to the to suit your actor