home *** CD-ROM | disk | FTP | other *** search
- if(getProperty("_root.BackgroundMC", _X) + _X > 0 and getProperty("_root.BackgroundMC", _X) + _X < 450 and getProperty("_root.BackgroundMC", _Y) + _Y + _height > 0 and getProperty("_root.BackgroundMC", _Y) + _Y < 300)
- {
- if(eval("_root.codeMC:state") != "dead")
- {
- if(getProperty("_root.playerMC", _Y) > _Y + getProperty("_root.BackgroundMC", _Y) and getProperty("_root.playerMC", _X) > _X + getProperty("_root.backgroundMC", _X) and getProperty("_root.playerMC", _X) < _X + getProperty("_root.backgroundMC", _X) + _width)
- {
- if(eval("_root.CodeMC:direction") == 1)
- {
- setProperty("_root.playerMC", _X, _X + getProperty("_root.backgroundMC", _X) - 1);
- }
- if(eval("_root.CodeMC:direction") == -1)
- {
- setProperty("_root.playerMC", _X, _X + getProperty("_root.backgroundMC", _X) + _width + 1);
- }
- set("_root.CodeMC:state","Stopped");
- }
- }
- }
-