Follow Actor Continually?

jadjad Member Posts: 135
edited November -1 in Working with GS (Mac)
Is there any effective way to make another actor follow your player. I have tried the way of constraining my players position to Attribute A and B, and then making my actors move to those attributes, but when they reach them they stop. I've tried using a timer also but it makes them extremely laggy is there an effective way to do this?

Comments

  • LoadingZeroLoadingZero Member Posts: 75
    have you tried to give the control camera behaviors to the actor to track?
  • jadjad Member Posts: 135
    No, i dont think thats what im talking about. this is what im using right now

    Constrain Attribute: self.Rotation to vectorToAngle( self.Position.X - self.Motion.Linear Velocity.X , self.Position.Y - self.Motion.Linear Velocity.Y )+90

    what am i doing wrong, they come onto the screen turn some and eventually all stop at the same angle
  • jadjad Member Posts: 135
    Anyone?
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    uhm... I'm not sure if this could work.... but try applying the accelerate towards behaviour.
    In order for it to work though, you will have to change the max speed and tick "apply max speed" box under motion in the actor editor.

    Understand what i mean?
  • RedlerTechRedlerTech Member Posts: 1,583
    Create 2 attributes ActorX & ActorY (real)

    Constrain ActorX to actor.selfposition.X
    Constrain ActorY to actor.selfposition.Y

    Make a rule in the actor that follows the 1st actor

    RULE: When self.position.X does not = ActorX & self.position.Y does not = ActorY

    Move to ActorX & ActorY

    How'd that work?
  • jadjad Member Posts: 135
    Thanks so much Giacompoppi works perfectly! You should be a Sous Chef
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    No problem ;)

    Sous Chef? Nah, not yet at least!
    I have just recently started participating in the community.
    We'll see in the future ;)

    Giacomo
Sign In or Register to comment.