GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

follow the actor in motion

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

Comments

  • gyroscopegyroscope I am here.Posts: 6,577Member, Sous Chef, PRO
    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 http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.