But I wonder how I would take a point before, and another point after falling, and compare the two. In other words, I am trying to figure out where in the code the actual falling takes place.

Even when I put this code in the program:

Code:
action player_code()
{
   ...

   DEBUG_VAR(my.z, 150);

   ...

   if(my.z == NULL)
   {
      beep();
   }

   ...
}



...the game does not beep when the player drops off a cliff in mid-air, even though my.z does not give off any value through the DEBUG_VAR() function while the player is falling. my.z does show a value through DEBUG_VAR() when the player is touching the ground.

Last edited by Ruben; 12/17/15 04:38.