right or left
Posted: Mon May 01, 2006 4:17 pm
if I have an actor that follows my mouse, and a moving animation for right and left ho do I get the actor to change anim to right when going to the right, and vice-versa. this is my code:
if(-xvelocity>0)changle animation("left"...);
if(+xvelocity>0)changle animation("right"...);
this work accept the animation is stuck on frame 1, when the anim has to move from frame to frame.
if(-xvelocity>0)changle animation("left"...);
if(+xvelocity>0)changle animation("right"...);
this work accept the animation is stuck on frame 1, when the anim has to move from frame to frame.