Problem to move multiple objects at once

I.C.R.I.C.R. Member, PRO Posts: 14
Hello,

I move two (or more) objects at a time when playing an actor.

I use a constant variable to pass the value of its position:

- Constrain Attribute
game.variable = actor1.position.y

and ...

- Constrain Attribute
actor2.position.y = game.variable

but ...

The actor2 moves a little slower (delayed) yielding an unsightly visual appearance, etc..

What do I do wrong?

Thank you!

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited December 2013
    @I.C.R.

    Change the layer order, place actor 1 lower in the layer order than actor 2.

    You probably have this . . .

    Actor 1
    Actor 2

    . . . but you need this . . .

    Actor 2
    Actor 1

    . . . . . .

    Also if you want to do more complex moves with multiple objects check out this:

    http://forums.gamesalad.com/discussion/62202/linkmachine

  • I.C.R.I.C.R. Member, PRO Posts: 14
    Thanks Socks,

    It works better, but not perfect. :-(

    The actor2 is a bit slower.

    I have looked at the link you advised me but I do not understand the solution.

    Sorry.
Sign In or Register to comment.