home *** CD-ROM | disk | FTP | other *** search
- reach = getProperty("/m1", _xscale);
- if(getProperty("/m1", _X) + int(reach / "3") >= _X and _X >= getProperty("/m1", _X) - int(reach / "3") and getProperty("/m1", _Y) + int(reach / "2") >= _Y and _Y >= getProperty("/m1", _Y))
- {
- tellTarget("")
- {
- gotoAndStop("nokey");
- }
- tellTarget("/keylevel1")
- {
- gotoAndStop("yellow");
- }
- tellTarget("/playersounds")
- {
- gotoAndStop("key");
- play();
- }
- }
- if(getProperty("/keylevel1", _currentframe) == "10")
- {
- tellTarget("")
- {
- gotoAndStop("nokey");
- }
- }
-