Character.Moving

Started by nightmarer, 25 May 2021, 21:20

« previous - next »

nightmarer

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
function walking() {
  if (stop == true && Character.Moving == true){
    stop=false;
    Display("Inside");
  }
}


Crimson Wizard

Quote from: nightmarer on 25 May 2021, 21:20
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

nightmarer

Oh! I see. Thank you!

SMF spam blocked by CleanTalk