see 2 possible solutions:
1.- Use an invisible sprite "dummy", place it just on the top, and check for collisions.
2.- Compare positions of objects in the moment of the hit: If "Y" is lower, the object is higher and comes from above.
(lol, just the same as hundredfold, seems we were writing at the same time...)