1
Ask a Question / Re: How do I get one actor to follow another? (top down view)
« on: June 02, 2011, 04:44:45 am »
Thanks guys.
I think I asked my question wrong. What I am trying to do is have a main actor controlled with the mouse (got that working fine) and baddies that chase the main actor.
I was thinking there should be away to constrain the main actors x y coordinates to a global attribute that can be "read" by the baddies. Then I would use trig to constrain the baddies' rotation to point towards the main actor. Can't seem to get that to work.
Is there away to get actor 1 to "see" the x,y coordinates of actor 2?
Thanks!
I think I asked my question wrong. What I am trying to do is have a main actor controlled with the mouse (got that working fine) and baddies that chase the main actor.
I was thinking there should be away to constrain the main actors x y coordinates to a global attribute that can be "read" by the baddies. Then I would use trig to constrain the baddies' rotation to point towards the main actor. Can't seem to get that to work.
Is there away to get actor 1 to "see" the x,y coordinates of actor 2?
Thanks!