intersecting issue

Hello,

I am writing a 2D Platformer game with the old feel of the Mario games from the NES (you know the classic game) and I was trying to figure out how to do the jumping on an enemy’s head.

So what I am asking is, how could I check if the bottom Y of the player avatar is intersecting the top y of the enemy avatar?

Not asking you to do my work for me, but a point in the right direction would be great, and I won’t turn away an example :wink: