Making a npc walk form one spot to another

Started by Ix-Star, Sat 22/04/2023 11:00:13

Previous topic - Next topic

Ix-Star

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

Matti

How do you want it to work exactly?

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

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

SMF spam blocked by CleanTalk