home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / PMGRacing.swf / scripts / frame_14 / DoAction.as
Encoding:
Text File  |  2001-07-07  |  1.6 KB  |  53 lines

  1. line1a_x = getProperty("/line1a", _X);
  2. line1a_y = getProperty("/line1a", _Y);
  3. line1b_x = getProperty("/line1b", _X);
  4. line1b_y = getProperty("/line1b", _Y);
  5. line2a_x = getProperty("/line2a", _X);
  6. line2a_y = getProperty("/line2a", _Y);
  7. line2b_x = getProperty("/line2b", _X);
  8. line2b_y = getProperty("/line2b", _Y);
  9. if("880" < getProperty("/line1a", _X))
  10. {
  11.    setProperty("/line1a", _X, getProperty("/line1b", _X) - "655.4");
  12.    setProperty("/line1a", _Y, getProperty("/line1b", _Y) + "458.9");
  13. }
  14. else if("880" < getProperty("/line1b", _X))
  15. {
  16.    setProperty("/line1b", _X, getProperty("/line1a", _X) - "655.4");
  17.    setProperty("/line1b", _Y, getProperty("/line1a", _Y) + "458.9");
  18. }
  19. else if("880" < getProperty("/line2a", _X))
  20. {
  21.    setProperty("/line2a", _X, getProperty("/line2b", _X) - "655.4");
  22.    setProperty("/line2a", _Y, getProperty("/line2b", _Y) + "458.9");
  23. }
  24. else if("880" < getProperty("/line2b", _X))
  25. {
  26.    setProperty("/line2b", _X, getProperty("/line2a", _X) - "655.4");
  27.    setProperty("/line2b", _Y, getProperty("/line2a", _Y) + "458.9");
  28. }
  29. else
  30. {
  31.    setProperty("/line1a", _X, line1a_x + vel_x);
  32.    setProperty("/line1a", _Y, line1a_y + vel_y);
  33.    setProperty("/line1b", _X, line1b_x + vel_x);
  34.    setProperty("/line1b", _Y, line1b_y + vel_y);
  35.    setProperty("/line2a", _X, line2a_x + vel_x);
  36.    setProperty("/line2a", _Y, line2a_y + vel_y);
  37.    setProperty("/line2b", _X, line2b_x + vel_x);
  38.    setProperty("/line2b", _Y, line2b_y + vel_y);
  39. }
  40. if(acc eq "1")
  41. {
  42.    tellTarget("/vel_start")
  43.    {
  44.       gotoAndStop("start");
  45.       play();
  46.    }
  47. }
  48. if("99" < getProperty("/damage", _currentframe))
  49. {
  50.    gotoAndStop(44);
  51. }
  52. play();
  53.