Character.Moving

Started by nightmarer, Tue 25/05/2021 21:20:49

Previous topic - Next topic

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 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

nightmarer


SMF spam blocked by CleanTalk