home *** CD-ROM | disk | FTP | other *** search
- setProperty("/gh2", _X, getProperty("/gh2", _X) + (getProperty("/gh2", _X) - "275") / "94");
- setProperty("/gh2", _Y, getProperty("/gh2", _Y) + "4");
- ghrandom = random("25");
- if(getProperty("/gh2", _Y) >= "320" or ghrandom == "15")
- {
- tellTarget("/gh2")
- {
- gotoAndStop("g-up");
- play();
- }
- }
- if(getProperty("/m1", _Y) >= getProperty("/gh2", _Y))
- {
- setProperty("/gh2", _visible, "0");
- setProperty("/gh1", _visible, "1");
- }
- if(getProperty("/m1", _Y) < getProperty("/gh2", _Y))
- {
- setProperty("/gh2", _visible, "1");
- setProperty("/gh1", _visible, "0");
- }
- setProperty("/gh1", _Y, getProperty("/gh2", _Y));
- setProperty("/gh1", _X, getProperty("/gh2", _X));
- setProperty("/gh2", _xscale, "100" + "0.2" * (_Y - "200"));
- setProperty("/gh2", _yscale, "100" + "0.2" * (_Y - "200"));
- setProperty("/gh1", _xscale, getProperty("/gh2", _xscale));
- setProperty("/gh1", _yscale, getProperty("/gh2", _yscale));
- tellTarget("/gh1")
- {
- gotoAndPlay(getProperty("/gh2", _currentframe));
- }
- if(getProperty("/m1", _X) + "30" >= _X and _X >= getProperty("/m1", _X) - "30" and getProperty("/m1", _Y) + "20" >= _Y and _Y >= getProperty("/m1", _Y) - "20" and getProperty("/m1/hit", _currentframe) == "1")
- {
- tellTarget("/m1/hit")
- {
- play();
- }
- }
- soundplay = random("66");
- if(soundplay == "33")
- {
- tellTarget("/monstersounds")
- {
- gotoAndStop("ghost");
- play();
- }
- }
-