Space to detect. This isn't perfect, as there are gaps in between sprites that will make this inaccurate, but it will works perfectly on objects without gaps. See inside.
MAKE SURE YOU PUT IN THE NAME OF THE SPRITE WITH CASE-SENTITIVITY.