There is an alternative method of detecting when geometries are in contact with each other besides using collisions (onCollide script). This scene shows a simple script that detects when another geometry OR the mouse cursor, are very close to a circle that contains the script. There are three versions of the script, one for each different geometry (and the cursor position) being monitored. When the distance between the black circle and either of those items being monitored is closer than the diameter of the black circle, the color of the black circle will change to either Red, White, or Blue. Keep in mind that the xy position value (pos) is the location of the CENTER point of the circle, not the outer edge.
This script can be very handy for detecting collisions between geometries that cannot be triggered using the traditional onCollide script.
By the way, there are other slightly different versions of this script that other people have used in their scenes. This is just one example, but you can find different and even better versions of it in past scenes by kilinich, s_noonan, and other very talented software guru's. You can also find tutorials in the Algodoo forum. Also please note that this script will only work for circles. If you want to detect boxes or polygons, then the script will need to be quite different, which you can find in the forum. Here is an EXCELLENT tutorial by kilinich:
MouseOver Effects
Leave comments if you have questions about this scene and I'll try my best to answer them.