home *** CD-ROM | disk | FTP | other *** search
- _X = _X - "6";
- _Y = _Y + "5";
- _xscale = "100" + "0.2" * (_Y - "200");
- _yscale = "100" + "0.2" * (_Y - "200");
- gb1random = random("2") + "1";
- gb1b = random("50");
- if("300" - (getProperty("/gb1", _Y) - "400") / "3" >= getProperty("/gb1", _X) or gb1b == "15")
- {
- tellTarget("/gb1")
- {
- if(gb1random == "1")
- {
- gotoAndStop("gb-RD");
- play();
- }
- if(gb1random == "2")
- {
- gotoAndStop("gb-RU");
- play();
- }
- }
- }
- if(getProperty("/gb1", _Y) >= "340" or gb1b == "35")
- {
- tellTarget("/gb1")
- {
- if(gb1random == "1")
- {
- gotoAndStop("gb-RU");
- play();
- }
- if(gb1random == "2")
- {
- gotoAndStop("gb-LU");
- play();
- }
- }
- }
- setProperty("/gb2", _X, getProperty("/gb1", _X));
- setProperty("/gb2", _Y, getProperty("/gb1", _Y));
- tellTarget("/gb2")
- {
- gotoAndPlay(getProperty("/gb1", _currentframe));
- }
- if(getProperty("/m1", _Y) >= _Y)
- {
- setProperty("/gb2", _visible, "0");
- setProperty("/gb1", _visible, "1");
- }
- if(getProperty("/m1", _Y) < _Y)
- {
- setProperty("/gb2", _visible, "1");
- setProperty("/gb1", _visible, "0");
- }
- if(getProperty("/m1", _X) + "20" >= _X and _X >= getProperty("/m1", _X) - "20" and getProperty("/m1", _Y) + "20" >= _Y and _Y >= getProperty("/m1", _Y) - "20" and getProperty("/m1/hit", _currentframe) == "1")
- {
- tellTarget("/m1/hit")
- {
- play();
- }
- }
- soundplay = random("30");
- if(soundplay == "15")
- {
- tellTarget("/monstersounds")
- {
- gotoAndStop("goblin");
- play();
- }
- }
-