constrain an actor

tysonwillstysonwills Member, PRO Posts: 24
does anyone know how to constrain an actor to another as if it is being lifted on a short line as in the old 8 bit game thrust when the ship lifts the collectable, it also acts with gravity from side to side.Cheers

Comments

  • POMPOM Member Posts: 2,599
    To constrain one actor to another:
    Put actor 1 in the scene.
    Put actor 2 (going to be constrained to actor 1)
    Double click actor 2 inside the scene and open its "lock"
    Add inside 2 constrains-
    1)Constrain self.position.X To :
    Current scene -> Layers -> Locate your actor's layer -> actor 1 -> position.X
    Constrain self.position.Y To :
    Current scene -> Layers -> Locate your actor's layer -> actor 1 -> position.Y

    Roy.
Sign In or Register to comment.