home *** CD-ROM | disk | FTP | other *** search
/ One Click 5 / ONCE005.iso / Jogos / 1516.swf / scripts / DefineSprite_317 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-05-02  |  1.1 KB  |  37 lines

  1. reach = getProperty("/m1", _xscale);
  2. if(getProperty("/m1", _X) + int(reach / "3") >= _X and _X >= getProperty("/m1", _X) - int(reach / "3") and getProperty("/m1", _Y) + int(reach / "2") >= _Y and _Y >= getProperty("/m1", _Y) and getProperty("/lives", _currentframe) >= "2" and getProperty("/lives", _currentframe) < "6")
  3. {
  4.    tellTarget("")
  5.    {
  6.       gotoAndStop("gone");
  7.    }
  8.    tellTarget("/lives")
  9.    {
  10.       gotoAndStop(_currentframe - "1");
  11.    }
  12.    tellTarget("/nosee1/noseegarlic1")
  13.    {
  14.       gotoAndStop("gone");
  15.    }
  16.    tellTarget("/playersounds")
  17.    {
  18.       gotoAndStop("garlic");
  19.       play();
  20.    }
  21. }
  22. if(getProperty("/m1", _X) + int(reach / "3") >= _X and _X >= getProperty("/m1", _X) - int(reach / "3") and getProperty("/m1", _Y) + int(reach / "2") >= _Y and _Y >= getProperty("/m1", _Y) and getProperty("/lives", _currentframe) == "1")
  23. {
  24.    tellTarget("/lives/bagfull")
  25.    {
  26.       gotoAndStop("full");
  27.       play();
  28.    }
  29. }
  30. if(getProperty("/nosee1/noseegarlic1", _currentframe) == "2")
  31. {
  32.    tellTarget("")
  33.    {
  34.       gotoAndStop("gone");
  35.    }
  36. }
  37.