Thanks! It works great. I didn't want the hook wait until it gets it max length, so I changed it a little. I have one question, though:
Each tick you set value: distanceFromHook to its real distance, but when you move ufo so it will follow the hook you have to subtract 200. Why distanceFromHook resets to almost zero when the hook sticks to worm and ufo instantly follows it?
@Spades Thanks! I know I have the possibility like this, but @cow_trix methos is interesting because hook just sticks to the object in the point where it collided with it. But probably in the end sticking to one imagepoint will be better.