Use the mouse. This is a code example for creating obstacles which must be approached from above. Colliding with the side of the scribbly sprite results in a different effect than colliding with the top.