Constraining one actor to follow another one

markbmarkb Member Posts: 10
edited August 2012 in Working with GS (Mac)
I'm trying to use the constrain attribute to keep two actors moving together, but there doesn't seem to be an option to do so. The only actor that shows up in the pulldown menu is the one I have selected. Is it not possible to do this?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Hi Mark,

    I had done a little tutorial file about this for someone else on the forum, it's still available for download if you want to check it out.

    clay-communications.com/jamie/constrain-actors-together.zip

    Jamie
  • markbmarkb Member Posts: 10
    OK, I figured out I can do this by constraining two game attributes to the x and y positions of Actor 1 and then constraining the x and y positions of Actor 2 to the game attributes. Seems like a very roundabout way of doing it, though.
  • markbmarkb Member Posts: 10
    Uptimistik, how do I access scene attributes? The only items which appear on the pulldown menu are "Game", "Devices" and the actor the behavior is being applied to.
  • pepemorenopepemoreno Member Posts: 13
    You can't access the "Scene" Option from the prototype actor. You have to place it in a scene first.
  • markbmarkb Member Posts: 10
    Cool! Thanks. In my case I need the actors to remain linked to each other across all the scenes, so putting a variable in "game" makes more sense, but this is really good to know.
  • ottophobiaottophobia Member Posts: 7

    I want to press and have ACTOR 1 leap onto a moving ACTOR 2 and move with it until I press again. The catch is that ACTOR 2 is a spawned actor so it's not in the scene yet.

  • colandercolander Member Posts: 1,610
    edited January 2015

    Instead of spawning you could try placing the actor on scene out of the viewable area then move it on scene when it is needed.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    @ottophobia‌ you already started a new thread with this same question. Please don't post in multiple threads. We also ask that you not post on very old threads (this one is over two years old).

This discussion has been closed.