well, there could be many possible ways to do it... you could have an animation play on collision with the floor (so the compression effect would be done through the artwork). If your object is complex, you could use Spriter to build an animation where the parts squish together. If your object is simple, like a ball, then you could just adjust the height of the object to make it looked compressed for a short while, then set it back to normal...