follow the actor in motion

I want that my actor follows other actor but that always it has the same distance


  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,577
    edited January 2016

    Hi @eldevelop18 You need to use the constrain behaviour, one to constrain the following actor's x position to the moving actor , another to the y position, both with offsets to give it the distance you want.

    Constrain Attribute self.Position.x to Moving actor.Position.x + 100
    Constrain Attribute self.Position.y to Moving actor.Position.y + 100

    ---in this example, 100 is to change to whatever distance away you want the actor that's following to be. Hope that helps.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain

Sign In or Register to comment.