Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Sam. on Sat 22/11/2003 09:37:10

Title: walking backwards
Post by: Sam. on Sat 22/11/2003 09:37:10
in my game i want my character to approch a coorway and back away slowly. i know how to make him walk away. but that turns him around. i want him to actually reverse away from the door like, run the nanimation backwards
Title: Re:walking backwards
Post by: Cerulean on Sat 22/11/2003 10:22:16
You need to make another "view" of your character with the loops reversed.
Title: Re:walking backwards
Post by: Spyros on Sat 22/11/2003 22:11:11
or do something like this :

AnimateCharacter(EGO,1,0,1);
while (character[EGO].x<100) {
character.x+=2;
Wait(1);
}
character[EGO].frame=0;

replace the number 100 with the one you want