I would like to add another solution if you dont mind.
Another way to do this is to use "Object is overlapping at offset" condition. So if you are overlapping the sprite at, lets say, 50 pixels away, it would run some actions.
Yet another would be the expression: "distance(x1,y1,x2,y2)", which calculates the amount of pixels away you are from that object. Its very neat and useful!
I know your problem is solved, but I want to feel like I'm helping the community.