void MakeLine(int X, int Y)
{
int xPer = view.x + view.width - X;
int yPer = view.y + view.height - Y;
moveto(X, Y);
lineto(X - xPer, Y - yPer);
}
void AnimSwap(char *animation1, char*animation2, char *actorr) {
Actor*a=getclone(actorr);
if(a->animindex==getAnimIndex(animation1) && a->animindex!=getAnimIndex(animation2)) {
ChangeAnimation(actorr, animation2, FORWARD); }
}
AnimSwap("Walk Left", "Walk Right", "PLAYER");
Users browsing this forum: No registered users and 1 guest