Even if I change the code to:
or
or
if(my.z == 0)
{
beep();
}
or
if(my.z == NULL)
{
beep();
}
...no beeping is taking place while the player is not touching the ground, while jumping or falling off a ledge.
For the:
The game beeps when the player is touching the ground, but does not beep when the player jumps, or falls off a ledge. In other words, every time the player is not touching the ground, no beeping takes place.