The thing here is that, now I have an object that follows the mouse position (a red diamond) and changes to Blue if left clicked (basically this being the game cursor). in order to test this with another object (something to be clicked on), I made another diamond colored white and changes to green when clicked on. For now it works with distance detection.
The conditions are following:
If left click Is pressed
And
This object (the white diamond) is Near (the red diamond mouse) in less than 100px (from the center of white diamond) in any direction
Then it turns green.
It works but how can i be able to make it detect if it collides to one other making the white diamond turns into a green diamond when the red diamond is above it and performing a left click without pushing each other, regardless it’s size. Since distance detection wont change if I make white diamond bigger or smaller. It will still detect within 100px.