Changing freespecial by facing left or right

betterbold

Active member
Hello , everyone !! :D
I want to make a character that change freespecial by facing left or right.
Is there a good way ?  :)
xsN04eU.png
 
Yes. Just check the entity direction and use a performattack to change to a different animation.
For example, you can make the Freespecial6 (right) the normal one and put a script on it to see if its facing left, than change to the desired animation - so you don't need to check if its facing right.
 
Here's example:
Code:
anim attack1
@script
    if(frame==1){
      void self = getlocalvar("self");
      int Dir = getentityproperty(self, "direction");

      if(Dir==0){
        changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL4"));
      }
    }
@end_script
...

If character performs ATTACK1 while facing left, he/she will change animation to FREESPECIAL4 instead.

HTH
 
Back
Top Bottom