Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: YotamElal on Sat 19/02/2005 13:36:10

Title: need character 2 walk around in loop? [SOLVED]
Post by: YotamElal on Sat 19/02/2005 13:36:10
How can a make a character (computer) move in a pattern with an infinite loop or at least a very high won....?

PLZ I'm really stuck!

I used MoveCharacterPath command but if I put it in a while loop then the game hangs.

Title: Re: need character 2 walk around in loop?
Post by: strazer on Sat 19/02/2005 14:11:13

  // script for room: Repeatedly execute

  //...

  if (character[SOMEGUY].walking == 0) {
    MoveCharacter(SOMEGUY, 0, 100);
    MoveCharacterPath(SOMEGUY, 160, 150);
    MoveCharacterPath(SOMEGUY, 320, 100);
  }

  //...
Title: Thank You!!!!
Post by: on Sat 19/02/2005 20:30:52
:o)