I am needing to optimize my game and wondered if anyone can say which is more efficient at calculating the distance between 2 objects? When the player moves I run a for each loop on all obstacles and store their distance to the player in the obstacle's alterable variable. Right now I use the Adv Dir Obj "distance between 2 objects" expression. But I am curious if it is faster to use the equation for distance?
Anyone know if there is any significant difference between these two approaches? I am exporting to mobile as well as windows if that matters.