|
|
An exercise in working with ranged effects. This script performs distance comparisons, scripted tweening, and hit checks. The script was written with the behavior of magnetism in mind, and then modified to be more playful. The dots show no interest in the mouse until it passes into a set range. At this point their position and scale correlates with the mouse's ditance from them. A limit is set on this effect, preventing the dots from moving or scaling beyond a specified point. Created using ActionScript 2.0 |