I'm trying to use the Move Safely 2 object to detect when my player is falling so that he doesn't fall through platforms.

The way my player moves is not direct. I have a mask that is controlled by the player. Attached to this mask are several sensors, the one in question being the ground sensor. When the ground sensor detects collisions with objects to stand on, it sets the gravity counter to 0, which in turn stops moving the mask, which in turn stops moving the ground sensor.

Here's the problem. The Move Safely 2 object works great if I use it to protect the mask. If I tell it to detect when the mask goes through a platform, it stops it and puts it on top of the platform. However, the mask covers the entirety of the player's sprite.

So, I try using the Move Safely 2 object to protect the ground sensor. However, this does not work, because even if it detects a collision with a platform and pushes the sensor back to the top of the platform, the mask is what everything is attached to, and the mask keeps falling, thus taking the sensor with it.

The reason I can't have the whole mask detect the collision is because if just the character's face touches the edge of a platform while he is falling, it counts as a collision and it pops the player up on top of the platform, which is not desired. Well, actually it just makes the player 'stick' where he is. This is the whole purpose of the ground sensor anyway. Only platforms at the player's feet should be detected.

I need to use the Move Safely 2 object to detect when the ground sensor is passing through a platform, and then push the MASK to the top and not the ground sensor. If I do that, the ground sensor will follow.

Any ideas?