So, this might be simple enough for some but please forgive me as I'm a relatively new user.
I'm creating a point-and-click game, and I got a condition that basically says:
- If you click on Object A, if Player is within 150 pixels of Object A he will pick it up.
- If you click on Object A, and the Player is NOT within 150 pixels of Object A, he will walk to where you clicked first.
Now, in the second case where the player is not within range, I want the system to check that after you clicked and the player reaches a certain point (150 pixels of Object A), he will then stop (-> Stop MoveTo) and pick up the object. But how do I check if the Player is within Object A's range after he's moving already upon a click?
Thank you in advance