Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 11/04/2004 14:17:22

Title: MoveCharacter AND BACK .
Post by: on Sun 11/04/2004 14:17:22
 // script for room: First time player enters screen
MoveCharacter (ALIEN, 88, 133);
MoveCharacterPath (ALIEN, 336, 139);
MoveCharacterPath (ALIEN, 88, 133);
So i want him to move back and forth and not stop  , how ?
Right now he goes down the street and back to where he started .
Title: Re:MoveCharacter AND BACK .
Post by: Scorpiorus on Sun 11/04/2004 14:35:41
You need to move your script to room's repeatedly execute:


// script for room: Repeatedly execute

if (character[ALIEN].walking == 0) { //if not walking
 MoveCharacterPath (ALIEN, 88, 133);
 MoveCharacterPath (ALIEN, 336, 139);
}

~Cheers
Title: Re:MoveCharacter AND BACK .
Post by: on Sun 11/04/2004 14:40:49
I saw that and was thinking ummm but was not to sure about it .
Thank you for the help  again ..