At 7/24/04 05:07 PM, -Mazza- wrote:
Hey, is there a code to make the character turn around when you press the respective button? For example if you press the left arrow key that the character actually faces left and vice-versa? I sent you an e-mail earlier but I don't know if you got it.....
Put into the action for left ( Key.LEFT...) something like
if(_xscale==100){_xscale=-100;}
and for the right code
if(_xscale==-100){_xscale=100;}
Also you could make two frames inside the Hero MC, and use if(_currentframe==1) and so on.