Changing animation on path.
Posted:
Wed Jul 05, 2006 2:44 pm
by Hyperyon
Is it possible for my player to change animations when turned right and left on a path?
Posted:
Thu Jul 06, 2006 3:31 pm
by Hyperyon
Ok, I made a path for my actor then typed that code in script editor. Gave me no errors, however nothing happend:(
Posted:
Thu Jul 06, 2006 4:50 pm
by Novice
Thats because that's not the right code, use:
- Code: Select all
if (xvelocity>0) change animation("right")
else if (xvelocity<0) change animation("left")
WARNING this is pseudo code!!!
Posted:
Thu Jul 06, 2006 5:46 pm
by Game A Gogo
i tought that all the animations was in one animation.
Posted:
Thu Jul 06, 2006 6:25 pm
by Hyperyon
Thanks alot guys! I'll built monuments in youre honor!