home *** CD-ROM | disk | FTP | other *** search
- x1 = getProperty("/car1", _X);
- y1 = getProperty("/car1", _Y);
- x2 = getProperty("/1", _X);
- y2 = getProperty("/1", _Y);
- x3 = getProperty("/2", _X);
- y3 = getProperty("/2", _Y);
- if(x2 < x1)
- {
- xDistance = x1 - x2;
- }
- else
- {
- xDistance = x2 - x1;
- }
- if(y2 < y1)
- {
- yDistance = y1 - y2;
- }
- else
- {
- yDistance = y2 - y1;
- }
- if(eval("/:w1") / "2" + eval("/:w2") / "2" >= xDistance and eval("/:h1") / "2" + eval("/:h2") / "2" >= yDistance)
- {
- tellTarget("/car1")
- {
- nextFrame();
- }
- }
- if(x3 < x1)
- {
- xDistance2 = x1 - x3;
- }
- else
- {
- xDistance2 = x3 - x1;
- }
- if(y3 < y1)
- {
- yDistance2 = y1 - y3;
- }
- else
- {
- yDistance2 = y3 - y1;
- }
- if(eval("/:w1") / "3" + eval("/:w3") / "3" >= xDistance2 and eval("/:h1") / "3" + eval("/:h3") / "3" >= yDistance2)
- {
- set("../sc:score",score + "500");
- }
-