home *** CD-ROM | disk | FTP | other *** search
- obj1_x = getProperty("/frosch", _X);
- obj2_x = getProperty("/auto2", _X);
- delta_x = obj1_x - obj2_x;
- obj1_y = getProperty("/frosch", _Y);
- obj2_y = getProperty("/auto2", _Y);
- delta_y = obj1_y - obj2_y;
- if((radius1 + radius2) * (radius1 + radius2) >= delta_x * delta_x + delta_y * delta_y)
- {
- fscommand("startEffect","train");
- tellTarget("/frosch")
- {
- gotoAndStop("dead");
- play();
- }
- tellTarget("/steuerung")
- {
- gotoAndStop("aus");
- play();
- }
- tellTarget("/restzeit")
- {
- gotoAndPlay(1);
- }
- }
-