Problem to move multiple objects at once
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!
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
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
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.