How to order execution of behaviors correctly

I am trying to use a repeater to spawn 4 objects in a “circle”


The problem is that usually one of the objects is completely off from where it is supposed to be, and this makes me think the first iteration of the repeater doesn’t get the coordinates before spawning. How could I fix this?

2 Likes

Maybe just create separate spawns with the coordinates forming a circle?

1 Like

3 Likes

what do you mean by above? should the line/connector or the behavior be above?

2 Likes

Sorry I wasn’t clear, the outputs are activated in top → bottom order, sorted by the inputs they are connected to. In the screenshot, the Expression out outputs will activate in this order:

  1. Extractor extract input, its at the top
  2. Expression A input (next one down)
  3. Expression eval input
  4. Expression 2 A input

Maybe either the Extractor extract input or Expression 2 eval input - they both seem to have the same y position, so I can’t tell by looking.

If you move the lower Expression block down some, then the eval input will be lowest and will for sure evaluate last, which is what you want

3 Likes

I never knew the behavior positions actually changed the order :0
This is what would work, right?

3 Likes

That looks like a working order to me - does it fix your problem?

2 Likes

yes, it seems to be working consistently; Thank you!

3 Likes