home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / redbeard.swf / scripts / DefineSprite_181 / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-12  |  1.1 KB  |  27 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.    this;
  4.    if(hittest(_root.playerMC))
  5.    {
  6.       trace(eval("_root.codeMC:Testscore"));
  7.       set("_root.codeMC:blueSwitch","off");
  8.       set("_root.codeMC:redSwitch","off");
  9.       set("_root.codeMC:purpleSwitch","off");
  10.       set("_root.codeMC:Testscore",0);
  11.       set("_root.codeMC:score",eval("_root.codeMC:score") + eval("_root.codeMC:bonusScore"));
  12.       setProperty("_root.playerMC", _X, 171.2);
  13.       setProperty("_root.playerMC", _Y, 97);
  14.       setProperty("_root.backgroundMC", _X, 0);
  15.       setProperty("_root.backgroundMC", _Y, 0);
  16.       set("_root.codeMC:redgems",0);
  17.       set("_root.codeMC:bluegems",0);
  18.       set("_root.codeMC:purplegems",0);
  19.       set("_root.codeMC:colourActive","none");
  20.       set("_root.codeMC:currentGround",500);
  21.       _root.LevelboardMC.gotoAndPlay("start");
  22.       set("_root.CodeMC:tutorial","off");
  23.       _root.score = eval("_root.codeMC:score");
  24.       set("_root:end",1);
  25.    }
  26. }
  27.