Moving all acters that are stick jointed together. ? ? ? ?

NOTA

  • Posts: 187
I have 10 actors stick jointed to a main actor. when you move the main actor, the others follow.
When I, ( slide actor to x of ) only the main actor moves and all ones that are joined, are left behind.
Can we some how group the actors together for a second, or somehow get the joined actors to follow
without typing  ( slide actor 1 to x of ) ( slide actor 2 to x of ) ( slide actor 3 to x of ) and so on?

JeffreyDriver

  • Posts: 2084
I assume the issue occurs because slide is a tween, whereas moving your main actor is using physics.

If you you assigned all 10 actors to a specific group, you could use the 'for every actor of group' block instead of sliding each actor separately.
Current Projects:
The Grand Grimoire Chronicles Episode 1 now on Kongregate!.
I always appreciate useful feedback. Thank you.
www.jeffreydriver.co.uk

NOTA

  • Posts: 187
Would be nice to be able to sellect  multiple actors, right click, and click group and give the group a new name.
Then code " if this or that, move group xyz to x,y, "

NobodyX

  • *
  • Posts: 1228
Quote
Would be nice to be able to sellect  multiple actors, right click, and click group and give the group a new name.
Then code " if this or that, move group xyz to x,y, "

You can use actor values for that to group actors together however you want. For example you can make them have a value called "groupname" and set some of them to "group1". Make a behaviour that lets you set a text attribute in the scene editor and then the behaviour sets the actor value to "group1" or whatever you type in.  And then when you want to control them you can do

for each actor in group/type/whatever
if value groupname = group1
then do the thing