home *** CD-ROM | disk | FTP | other *** search
/ Online Today 2001 June / Otoday062001.iso / pc / progwin / happybag.exe / scripts / frame_40 / DoAction.as
Encoding:
Text File  |  2001-04-19  |  2.6 KB  |  113 lines

  1. play();
  2. xm = getProperty("/moto", _X);
  3. ym = getProperty("/moto", _Y);
  4. xa1 = getProperty("/a1", _X);
  5. ya1 = getProperty("/a1", _Y);
  6. xa2 = getProperty("/a2", _X);
  7. ya2 = getProperty("/a2", _Y);
  8. xla = getProperty("/lache", _X);
  9. yla = getProperty("/lache", _Y);
  10. xka = getProperty("/kanne", _X);
  11. yka = getProperty("/kanne", _Y);
  12. xfa = getProperty("/frau", _X);
  13. yfa = getProperty("/frau", _Y);
  14. xgu = getProperty("/gu", _X);
  15. ygu = getProperty("/gu", _Y);
  16. xmg = getProperty("/mg", _X);
  17. ymg = getProperty("/mg", _Y);
  18. if(ym - ya1 < breite and - breite < ym - ya1 and xm - xa1 < breite2 and - breite2 < xm - xa1)
  19. {
  20.    tellTarget("/moto/rad")
  21.    {
  22.       gotoAndStop("ex");
  23.       play();
  24.    }
  25.    tellTarget("/moto")
  26.    {
  27.       gotoAndStop("end");
  28.    }
  29.    gotoAndStop(45);
  30. }
  31. if(ym - ya2 < breite and - breite < ym - ya2 and xm - xa2 < breite2 and - breite2 < xm - xa2)
  32. {
  33.    tellTarget("/moto/rad")
  34.    {
  35.       gotoAndStop("ex");
  36.       play();
  37.    }
  38.    tellTarget("/moto")
  39.    {
  40.       gotoAndStop("end");
  41.    }
  42.    gotoAndStop(45);
  43. }
  44. if(ym - yla < brela and - brela < ym - yla and xm - xla < brela and - brela < xm - xla)
  45. {
  46.    tellTarget("/moto")
  47.    {
  48.       stepx *= "2.5";
  49.    }
  50.    tellTarget("/sou2oel")
  51.    {
  52.       play();
  53.    }
  54. }
  55. if(ym - ygu < brela and - brela < ym - ygu and xm - xgu < brela and - brela < xm - xgu)
  56. {
  57.    tellTarget("/moto")
  58.    {
  59.       _Y = _Y - "20";
  60.    }
  61.    tellTarget("/sou2oel")
  62.    {
  63.       gotoAndStop("gulli");
  64.       play();
  65.    }
  66. }
  67. if(ym - yka < brela and - brela < ym - yka and xm - xka < brela and - brela < xm - xka)
  68. {
  69.    tellTarget("/sou4wa")
  70.    {
  71.       play();
  72.    }
  73.    set("/moto:stepy","6");
  74.    tellTarget("/moto/rad/lenker")
  75.    {
  76.       gotoAndStop("rechts");
  77.    }
  78.    tellTarget("/lade")
  79.    {
  80.       gotoAndStop(_currentframe + "60");
  81.    }
  82. }
  83. if(ym - yfa < brefa and - brefa < ym - yfa and xm - xfa < brefa and - brefa < xm - xfa)
  84. {
  85.    setProperty("/frau/tasche", _visible, "0");
  86.    if(tasche == "1")
  87.    {
  88.       tellTarget("/sou3tas")
  89.       {
  90.          play();
  91.       }
  92.       tellTarget("/moto/rad/lenker/tasche")
  93.       {
  94.          gotoAndStop(2);
  95.       }
  96.       nmin = n - "1";
  97.       duplicateMovieClip("/bag1","bag" add n,n + 16384);
  98.       if(reihe == "1")
  99.       {
  100.          setProperty("/bag" add n, _Y, getProperty("/bag" add nmin, _Y) + "5");
  101.          setProperty("/bag" add n, _X, getProperty("/bag" add nmin, _X));
  102.       }
  103.       if(reihe == "2")
  104.       {
  105.          setProperty("/bag" add n, _Y, getProperty("/bag1", _Y) + "5");
  106.          setProperty("/bag" add n, _X, getProperty("/bag1", _X) + "15");
  107.          reihe = "1";
  108.       }
  109.       n += "1";
  110.       tasche = "0";
  111.    }
  112. }
  113.