How do I check distance() between 2 instances of the same object ?
Each instance have a variable with different value (the instances are not completely identical)
Develop games in your browser. Powerful, performant & highly capable.
Pick the first one, store it's X & Y in local variables, pick the second one, do a distance() using the variables, and the object.