So basically I have 5 squares and 4 of them has a little circle ( ellipse ) inside.
So what I want is when a user clicks a square containing a circle. I need it to move to another square.
But I am having problems early. So far, I managed to find in which square the user has clicked. But I am trying to see if the square contains a cercle.
But it doesnt work for some reason...
Here is the code:
And the output is:Code:
But it supposed to return "true" because the square I traced with the .contains covers the cercle...Quote: