home *** CD-ROM | disk | FTP | other *** search
- _X = _X - "15";
- _Y = _Y - "12";
- _xscale = "100" + "0.2" * (_Y - "200");
- _yscale = "100" + "0.2" * (_Y - "200");
- skb = random("50");
- skrandom = random("2") + "1";
- if("50" - (getProperty("/sk1", _Y) - "400") / "3" >= getProperty("/sk1", _X) or skb == "15")
- {
- tellTarget("/sk1")
- {
- if(skrandom == "1")
- {
- gotoAndStop("sk-RD");
- play();
- }
- if(skrandom == "2")
- {
- gotoAndStop("sk-LD");
- play();
- }
- }
- }
- if("70" >= getProperty("/sk1", _Y) or skb == "35")
- {
- tellTarget("/sk1")
- {
- if(skrandom == "1")
- {
- gotoAndStop("sk-RD");
- play();
- }
- if(skrandom == "2")
- {
- gotoAndStop("sk-LD");
- play();
- }
- }
- }
- 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();
- }
- }
-