How do I compare a distance x value of an object with the distance x value of another? For example: If spriteBR is on the distance" 10" of the image point 0 (origin) of spritePT----> spriteBR destroy.
So, what I realy want is: if the spriteBR is distant "10" pixels of spritePT or if the spriteBR is between 0 and 10 pixels of spritePT.
I try put other object with that distance, but don't work in all condition of my project.