hey, in my game i want the _parent movie clip to follow the fish movie clip. i used this code i made… but the following is realy jerky and dosnt look nice. are there any other ways of doing it so that the closer you get the faster the follower accelerates towards you?
disx = Math.abs(_parent._x - _root.fish._x)
disy = Math.abs(_parent._y - _root.fish._y)
if(_parent._x > _root.fish._x){_parent._x -= _root.speed/disx}
if(_parent._x < _root.fish._x){_parent._x += _root.speed/disx}
if(_parent._y < _root.fish._y){_parent._y += _root.speed/disy}
if(_parent._y > _root.fish._y){_parent._y -= _root.speed/disy}