need character 2 walk around in loop? [SOLVED]

Started by YotamElal, Sat 19/02/2005 13:36:10

Previous topic - Next topic

YotamElal

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.


strazer

Code: ags

  // script for room: Repeatedly execute

  //...

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

  //...

Yotam Elal


SMF spam blocked by CleanTalk