Change Sprite to Random Color
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
-
LumpApps Posts: 2,881
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
Answers