Change Sprite to Random Color

daniel.robert.campbelldaniel.robert.campbell Member Posts: 251
edited September 2012 in Working with GS (Mac)
I've got an actor that I spawn a lot of instances of. I'd like that actor to have a random color every time it spawns. So far, I've got the actor with a "Change Attribute" behavior when it spawns, and the "Random" function in the value...the problem is that the Random function requires a numerical value. Do the color scales have a numerical value? If so, what is the minimum and maximum?

Best Answer

  • LumpAppsLumpApps Posts: 2,873
    Accepted Answer
    Yes it numerical from 0 to 1.
    The problem is random only gives integers (1,2,3,4, etc.) so what you have to do is make 3 change attributes one for red, one for blue, and one for green that change to random(0,10)*0.1


Sign In or Register to comment.