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) and collected != "on")
- {
- set("_root.codeMC:redgems",eval("_root.codeMC:redgems") + 1);
- _root.gem.start();
- gemTweenMovie.gotoAndPlay("collected");
- set("_root.codeMC:collected","red");
- collected = "on";
- }
- }
- if(eval("_root.codeMC:redgems") == 0 and collected == "on")
- {
- gemTweenMovie.gotoAndPlay("appear");
- collected = "off";
- }
-