how can i constrain one actor to another that moves

chicopchicop Member Posts: 263
edited November -1 in Working with GS (Mac)
hi

i have a platform moving left to right back and forth.. i am trying to constrain another actor to it so it moves with the platform...

ive tried constraining self.position.X but i just can not find to what to constrain it ..

thanks any help is appreciated

Comments

  • BackUpAndDownBackUpAndDown Member Posts: 685
    Make two new attributes "PlatformX" and "PlatformY"

    On the platform:
    constrain platformX to self.position.X
    constrain platformY to self.position.Y

    On your other actor:
    constrain self.position.X to PlatformX
    constrain self.position.Y to PlatformY
  • gazjmgazjm Member Posts: 578
    Or if you edit the instance of the actor, and not the prototype, you can browse through the scene layers and constrain it directly to the platform x.position
  • chicopchicop Member Posts: 263
    awesome!

    thanks guys
Sign In or Register to comment.