home *** CD-ROM | disk | FTP | other *** search
- if(getProperty("_root.BackgroundMC", _X) + getProperty("_parent", _X) > 0 and getProperty("_root.BackgroundMC", _X) + getProperty("_parent", _X) < 450 and getProperty("_root.BackgroundMC", _Y) + getProperty("_parent", _Y) > 0 and getProperty("_root.BackgroundMC", _Y) + getProperty("_parent", _Y) < 300)
- {
- if(_parent.beastie.hittest(_root.playerMC))
- {
- set("_root.codeMC:enemyCol","on");
- }
- }
- if(startup == null)
- {
- startx = getProperty("_parent", _X) + 1;
- startup = "done";
- }
- if(getProperty("_parent", _X) < startx)
- {
- direction = eval("_parent._parent:beastieMove");
- _parent.gotoAndStop(1);
- }
- distance = Number(_parent._name);
- if(getProperty("_parent", _X) > startx + distance)
- {
- direction = - eval("_parent._parent:beastieMove");
- _parent.gotoAndStop(2);
- }
- setProperty("_parent", _X, getProperty("_parent", _X) + direction);
-