home *** CD-ROM | disk | FTP | other *** search
- PassLeft = "1";
- PassRight = "0";
- PassUpCount = "0";
- PassDownCount += "1";
- CountCars = "1";
- while("5" >= CountCars)
- {
- CarNum = "/car" add CountCars;
- if((getProperty(CarNum, _X) + getProperty(CarNum, _width) / "2" < _X - _width / "2" - "2" or _X + _width / "2" + "2" < getProperty(CarNum, _X) - getProperty(CarNum, _width) / "2" or _Y + _height / "2" + "6" < getProperty(CarNum, _Y) - getProperty(CarNum, _height) / "2" or getProperty(CarNum, _Y) + getProperty(CarNum, _height) / "2" < _Y) and "390" >= _Y + "2")
- {
- set("Free" add CountCars,"1");
- }
- else
- {
- set("Free" add CountCars,"0");
- }
- CountCars += "1";
- }
- set("Free" add _name.substr("4","2"),"1");
- if(Free1 == "1" and Free2 == "1" and Free3 == "1" and Free4 == "1" and Free5 == "1")
- {
- _Y = _Y + "2";
- }
- else
- {
- Passing = "0";
- PassDownCount = "0";
- PassUpCount = "0";
- PassLeft = "0";
- PassRight = "0";
- }
- if(FrontLink eq "0")
- {
- if(_Y + _height / "2" + "10" < getProperty(FrontLink1, _Y) - getProperty(FrontLink1, _height) / "2" or getProperty(FrontLink1, _Y) + getProperty(FrontLink1, _height) / "2" < _Y - _height / "2" - "10")
- {
- Passing = "0";
- PassDownCount = "0";
- PassUpCount = "0";
- PassLeft = "0";
- PassRight = "0";
- }
- }
-