home *** CD-ROM | disk | FTP | other *** search
- thisYe = getProperty("/light", _Y);
- if("200" < thisye)
- {
- thisX = getProperty("/spin1", _X);
- thisY = getProperty("/spin1", _Y);
- spX = getProperty("/light", _X);
- spY = getProperty("/light", _Y);
- difX = thisX - spX;
- difY = thisY - spY;
- xStp = difX / "50";
- yStp = difY / "50";
- setProperty("/light", _X, spX + xStp);
- setProperty("/light", _Y, spY + yStp);
- tellTarget("/l2")
- {
- stop();
- }
- }
- else
- {
- tellTarget("/l1")
- {
- stop();
- }
- tellTarget("/l2")
- {
- play();
- }
- }
-