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