well, you could have 36,90, or 360 sprites of sonic rotating (first sprite of his head facing right and he must rotate counter clockwise), and find ferals stickto(); function.
Basicly, activate stickto when you get to the loop, and use this code to choose the rotation sprite:
- Code: Select all
animpos=direction(xprevious,yprevious,x,y);//for 360
- Code: Select all
angle=direction(xprevious,yprevious,x,y);//for 90
animpos=angle/4;
- Code: Select all
angle=direction(xprevious,yprevious,x,y);//for 36
animpos=angle/10;