home *** CD-ROM | disk | FTP | other *** search
/ Champak 35 / jogo-disk-35.iso / Games / red_beard.swf / scripts / DefineSprite_86 / frame_1 / DoAction.as
Text File  |  2007-02-27  |  1KB  |  31 lines

  1. if(getProperty("_root.BackgroundMC", _X) + _X > 0 and getProperty("_root.BackgroundMC", _X) + _X < 450 and getProperty("_root.BackgroundMC", _Y) + _Y > 0 and getProperty("_root.BackgroundMC", _Y) + _Y < 300)
  2. {
  3.    if(eval("_root.codeMC:state") != "dead")
  4.    {
  5.       this;
  6.       if(hittest(_root.playerMC))
  7.       {
  8.          _root.gem.start();
  9.          _root.goal.start();
  10.          trace(eval("_root.codeMC:Testscore"));
  11.          set("_root.codeMC:blueSwitch","off");
  12.          set("_root.codeMC:redSwitch","off");
  13.          set("_root.codeMC:purpleSwitch","off");
  14.          set("_root.codeMC:Testscore",0);
  15.          set("_root.codeMC:score",eval("_root.codeMC:score") + eval("_root.codeMC:bonusScore"));
  16.          setProperty("_root.playerMC", _X, 171.2);
  17.          setProperty("_root.playerMC", _Y, 97);
  18.          setProperty("_root.backgroundMC", _X, 0);
  19.          setProperty("_root.backgroundMC", _Y, 0);
  20.          set("_root.codeMC:redgems",0);
  21.          set("_root.codeMC:bluegems",0);
  22.          set("_root.codeMC:purplegems",0);
  23.          set("_root.codeMC:colourActive","none");
  24.          set("_root.codeMC:currentGround",500);
  25.          _root.LevelboardMC.gotoAndPlay("start");
  26.          set("_root.CodeMC:tutorial","off");
  27.          _root.backgroundMC.gotoAndPlay(eval("_root.codeMC:nextlevel"));
  28.       }
  29.    }
  30. }
  31.