I have a box sprite that, when created, is created 4 times and are positioned next to each other horizontally to form a rectangle.
I've applied a Sine behaviour to the sprite and have the period set at 5, so that when the box is created, it'll move up and down.
I want the period number to be a random number between 1 and 5 when created.
'Box on created' - 'Set Sine period to random(1,5)'
I've tried this but that hasn't worked as this gives a random number for each box, so they're moving seperatly rather than together.
Is there a way to give all the boxes created the same random generated number for Sine period?