home *** CD-ROM | disk | FTP | other *** search
- MoveRatio = 3;
- sx = _X;
- sy = _Y;
- sx += (TX - sx) / MoveRatio;
- sy += (TY - sy) / MoveRatio;
- _X = sx;
- _Y = sy;
- Check = false;
- if(PrevX == sx)
- {
- if(PrevY == sy)
- {
- Check = true;
- set("_root.Screen." add Name add ":MoveResult",true);
- }
- }
- if(Check == false)
- {
- PrevX = sx;
- PrevY = sy;
- }
-