GameSalad

Howdy, Stranger!

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

middle of it

Another noob question, but how can i get an actor to sit exactly between 2 other actors?

Comments

  • GnarlyGnarly canadaPosts: 840Member

    Are they moving?

    Is distance changing randomly?

  • GnarlyGnarly canadaPosts: 840Member

    X position of one actor minus x position of other actor divide by two.

    But I'm guessing there is more to it than that.

    More details needed.

  • SocksSocks London, UK.Posts: 12,822Member
    edited May 2015

    ...

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

    This subforum is for paid requests (hiring people to do work for you). Are you using a Mac or PC? I'll move this to Working with GS (Mac) or (PC) for you.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • smurftedsmurfted Posts: 504Member, PRO

    Sorry for posting in the wrong place.

    Both the two actors are moving in both the x and the y axis..

  • SocksSocks London, UK.Posts: 12,822Member

    @smurfted said:
    Sorry for posting in the wrong place.

    Both the two actors are moving in both the x and the y axis..

    Constrain X to (Actor 1 X + Actor 2 X) divided by 2
    Constrain Y to (Actor 1 Y + Actor 2 Y) divided by 2

  • smurftedsmurfted Posts: 504Member, PRO

    More silly questions but how can i get brackets to work in the expressions field?

  • tiger27tiger27 Posts: 127Member

    Just type it, it should be (at least, on a PC) next to the p.

  • smurftedsmurfted Posts: 504Member, PRO

    got it, silly me i had to put in in a timer behaviour..

Sign In or Register to comment.