I'm still not sure i get it, the function seems to calculate the distance between two points... while i'm trying to get the distance an object has traveled in pixels, and bare in mind these objects can be traveling in any direction. (see my code)
But that does answer one of my questions: getting the setting of alpha based on the distance between two points
But that does answer one of my questions: getting the setting of alpha based on the distance between two points