home *** CD-ROM | disk | FTP | other *** search
- obj1_x = getProperty("/frosch", _X);
- obj2_x = getProperty("/schild7", _X);
- delta_x = obj1_x - obj2_x;
- obj1_y = getProperty("/frosch", _Y);
- obj2_y = getProperty("/schild7", _Y);
- delta_y = obj1_y - obj2_y;
- if((radius1 + radius2) * (radius1 + radius2) >= delta_x * delta_x + delta_y * delta_y)
- {
- fscommand("startEffect","lilypad");
- setProperty("/frosch", _X, getProperty("/schild7", _X));
- }
-