you could make a sensor below the player that checks if is touching the ground and if the playerHitbox isn't (while sensor is), it tells you if you're on a platform (cannot be touching playerSensor)