What does this mean for me? You will always be able to play your favorite games on Kongregate. However, certain site features may suddenly stop working and leave you with a severely degraded experience.
What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security.
We suggest you install the latest version of one of these browsers:
I’m trying to make an object follow another one when it hits it. (The moving object is called “hook”)
The Hook has an animation that allows it to move towards the other object.
I tried this in the object’s actions:
The problem here is that the object only goes to the initial location of the hook, and doesn’t change it’s position depending on the hook’s location. How do I fix this?
I’m guessing it stops following because the hook moved too far and the two were no longer touching.
`var following = false;
following = true;
> *Originally posted by **[Shadow\_Craver](/forums/4/topics/310846?page=1#posts-6567148):***
> It didn’t work. I think it’s because I’m not Actually changing the hook’s coordinates, im just playing an animation. I’m not sure what to do :/
Yes, that would be exactly what’s causing it.
And you are not going to get the object to follow that hook as it animates, because Flash does not expose details on where that hook is (it’s a frame-based animation).
> *Originally posted by **[Shadow\_Craver](/forums/4/topics/310846?page=1#posts-6581978):***
> Thanks for the reply. I guess you’re right. I’m gonna have to use XY coordinates to make the hook move in complex directions. :P