This is preview!
Click on Join Now to Sign Up
This approach is reasonable so long as you don't mind parts of the bills not registering mouse interactions... However; there's absolutely no need to actually draw this 'invisible circle'; and especially not in the Bill move() method: you're repeatedly drawing an 'invisible circle' at the same location! Just test that the distance between the mouse and the bill is less than the 'ellipseRadius' - i.e. remove the code that draws those circles ;)I drew an invisible circle around the mouse and check to see if the distance between it and the position of the bill is less than the radius of the circle.