Page 1 of 1

right or left

PostPosted: Mon May 01, 2006 4:17 pm
by frodo
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.

PostPosted: Mon May 01, 2006 4:41 pm
by makslane
Make sure use the FORWARD option:

ChangeAnimation("Event Actor", "left", FORWARD);

PostPosted: Mon May 01, 2006 6:25 pm
by The achievement
woudnt it be Directional_velocity variable if you are trying to do what you are doing?

PostPosted: Thu May 04, 2006 2:05 am
by frodo
I am using Foward, and it still dosn't work.

PostPosted: Thu May 04, 2006 2:51 pm
by makslane
Where are you putting this action?
If is in a 'Draw Actor' event, try use NO_CHANGE instead FORWARD

PostPosted: Thu May 04, 2006 3:00 pm
by frodo
thanks a bunch, Makslane. it works great.