Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: nightmarer on Tue 25/05/2021 21:20:49

Title: Character.Moving
Post by: nightmarer on Tue 25/05/2021 21:20:49
Hello.

Seems that Character.Moving function is not detecting the movement of my character out of a point and click movement.
If I'm moving the character through a Character.Walk function blocked then the Character.Moving returns false.
I also tried to do it through Character.Frame > 0 and still doesn't work.
How I'm able to know that the Character is moving then?

This function is run through the RepExec.

Code (ags) Select
function walking() {
  if (stop == true && Character.Moving == true){
    stop=false;
    Display("Inside");
  }
}

Title: Re: Character.Moving
Post by: Crimson Wizard on Tue 25/05/2021 21:30:53
Quote from: nightmarer on Tue 25/05/2021 21:20:49
If I'm moving the character through a Character.Walk function blocked then the Character.Moving returns false.
<...>
This function is run through the RepExec.

RepExec is not run during blocking actions. You probably need to use repeatedly_execute_always.

https://adventuregamestudio.github.io/ags-manual/RepExec.html
Title: Re: Character.Moving
Post by: nightmarer on Tue 25/05/2021 21:50:15
Oh! I see. Thank you!