home *** CD-ROM | disk | FTP | other *** search
- function move()
- {
- point = new object();
- point.x = _root.Guy._x;
- point.y = _root.Guy._y;
- _root.bg.globalToLocal(point);
- if(_parent._x < point.x)
- {
- _parent._xscale = 100;
- _parent._x += 3;
- }
- if(_parent._x > point.x)
- {
- _parent._xscale = -100;
- _parent._x -= 3;
- }
- }
- move();
-