-
First thing…
I want a layer to occupy one of four rotation values and for the rotation of the layer to occupy one of these values randomly over time. The expression is came up with will probably explain this better,
w = random(4);
if ( w >= 0 && w > 1 ) 90
if ( w >= 1 && w > 2 ) 180;
if ( w >= 2 && w > 3 ) 270;
if ( w >= 3 && w >= 4 ) 0;The biggest problem is the changes are far to quick; once a frame. I would like the changes to be about twice a second. Any one know how i can do so? Also another problem is at some points in time the rotation value is the random value i.e. between 0-4, i assume this is because some numbers fall outside my inequality ranges, but can’t spot the leak?
I then want to arrange duplicates of this layer in a grid so that each of them is changing differently, is there a better way than just offsetting the layers in time? Or can i use something like random.seed so that each is changing differently?
Thanks a lot
Luke