I have always heard that collision and overlap checks are among the heaviest to make in regards of performance. I am wondering if it would be good to use a distance calculation before a collision check to increase performance, or if that is not a good idea?
For example I have a level with the player and 5 mines. I could have an event running all the time for checking if player is overlapping the mines. Or I could have an always event where I store a value in the mines for how far they are from the player in X and Y cordinates
(like Sqr(((X( "Mine" )-X( "Player" )) pow 2)+((Y( "Mine" )-Y( "Player" )) pow 2))
When they are close enough (the number is low enough) I activate the collision checking. What do you guys think of this?