No bounce. Just snap
No bounce. Just snap
Out of context: Reply #11
- Started
- Last post
- 13 Responses
- ridiculous0
Find the distance using this:
a = x2 - x1;
b = y2 - y1;
distance = math.sqrt(a*a + b*b);Use a conditional inside of a frame loop or listener to check for distance between two objects (or mouse) and assign new _x _y values based on found value.