home *** CD-ROM | disk | FTP | other *** search
- 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" + "3" < 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 + "1";
- }
-