Parent/Child attribute

mkfostermkfoster Member Posts: 27
edited November -1 in Working with GS (Mac)
Is there such thing in gamesalad as a Parent/Child attribute. so when the parent is touched and moved, the child automatically moves with it?

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    Yes you can, but it's somewhat difficult for beginners. What you need to do is create 2 attributes, parentX & ParentY Then constrain on the parent self.position y to Parent Y, do the same for X. Then, Have the child move to ParentX & ParentY. Get it?
  • ozboybrianozboybrian PRO Posts: 2,102
    Upon reading this. I hear so much about Constraints being power suckers.

    How many constraints can you have in a game before it starts to effect performance?

    How many can you have in a scene? If you change scene is it ok then to have 5 constraints in 100 scenes.
    Random Q Thanks.

    P.S

    Next Gen And Tshirt are both right.
Sign In or Register to comment.