Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ix-Star on Sat 22/04/2023 11:00:13

Title: Making a npc walk form one spot to another
Post by: Ix-Star on Sat 22/04/2023 11:00:13
Hi, Its me again. Im traying a npc walk for one spor to another without doing anything. I searched to find an answer but i didn't find anythin. I would be grateful if you could help me
Title: Re: Making a npc walk form one spot to another
Post by: Matti on Sat 22/04/2023 18:28:30
How do you want it to work exactly?

If the character should just continuously walk between two points it's simple:

if (!character.Moving)
{
  if (character.x == 100 && character.y == 100) character.Walk (200, 200);
  else                                          character.Walk (100, 100);
}