home *** CD-ROM | disk | FTP | other *** search
- obj1_x = getProperty("/zunge", _X);
- obj2_x = getProperty("/fly", _X);
- delta_x = obj1_x - obj2_x;
- obj1_y = getProperty("/zunge", _Y);
- obj2_y = getProperty("/fly", _Y);
- delta_y = obj1_y - obj2_y;
- if((radius1 + radius2) * (radius1 + radius2) >= delta_x * delta_x + delta_y * delta_y)
- {
- tellTarget("/fly")
- {
- gotoAndStop("dead");
- play();
- }
- }
-