home *** CD-ROM | disk | FTP | other *** search
- 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)
- {
- this;
- if(hittest(_root.playerMC))
- {
- trace(eval("_root.codeMC:Testscore"));
- set("_root.codeMC:blueSwitch","off");
- set("_root.codeMC:redSwitch","off");
- set("_root.codeMC:purpleSwitch","off");
- set("_root.codeMC:Testscore",0);
- set("_root.codeMC:score",eval("_root.codeMC:score") + eval("_root.codeMC:bonusScore"));
- setProperty("_root.playerMC", _X, 171.2);
- setProperty("_root.playerMC", _Y, 97);
- setProperty("_root.backgroundMC", _X, 0);
- setProperty("_root.backgroundMC", _Y, 0);
- set("_root.codeMC:redgems",0);
- set("_root.codeMC:bluegems",0);
- set("_root.codeMC:purplegems",0);
- set("_root.codeMC:colourActive","none");
- set("_root.codeMC:currentGround",500);
- _root.LevelboardMC.gotoAndPlay("start");
- set("_root.CodeMC:tutorial","off");
- _root.score = eval("_root.codeMC:score");
- set("_root:end",1);
- }
- }
-