you would have to find a way to determine hit detection with with the platforms, so i think the easiest way would be to have the platforms as sprites and set a "hot spot" for each side of the player sprite to determine what side is touching an obstacle  and stop movement in that direction by moveing the sprite to the edge of the platform its touching depending on what hot spot its collideing with. then you would have a gravity variable pulling the player sprite at every timer loop. so it seems possible but i dont think it would be very versitile for a game, might make a good mini game though