random colors?

POMPOM Member Posts: 2,599
edited November -1 in Working with GS (Mac)
hello im wondering if anyone did random color for an actor?

i spawn 7 actors and i like them to be in different shading of blue..
so i try random the blue color but random can work only with integer (as far as i know)..
and the gap is between 0-1 so its either 0 or 1.. (i need all the numbers from 0.1 to 0.9)
is there another way to random from light blue to dark blue for an actor?

(i know i can always do random (1,9) and have 9 rules so that : if 1 do 1 , if 2 do 2, but is there a better way?)

Comments

  • POMPOM Member Posts: 2,599
    never mind i just came up with an idea,
    integer TEMP - random (1,9)

    chang attribute - color blue to- TEMP/10
    should do the work, cant wait to try it (to bad im at work now) ;)
Sign In or Register to comment.