Change self.color problem

keekee312keekee312 Member Posts: 91
edited November -1 in Working with GS (Mac)
Hi,
I have some black and white actors and I want them to change colors, I selected a few colors in Photoshop thanks to the RGB colors. I set rules to have a random number which gives a color to each actor like : change "self.ActorColor" to random(1,19)
When self.Actorcolor = 1 => change self.color RED to 125, change self.color green to 255, change self.color BLUE to 0 (I don't know that color it's just an example)

When self.ActorColor = 2 => etc etc

But when I start the game, some actors are yellow or purple and the rest is white while I have more than 20 colors (meaning that their color didn't change, why ?) I precise that their original color is 1 1 1 (alpha 1)

Thanks

Edit : also have the cyan color

Comments

  • keekee312keekee312 Member Posts: 91
    Ok I think I found my problem :D
    RGB on gamesalad goes from 0 to 1... so instead of 222 or 134 it should be 0,...
    Thanks Keekee312, you're the best
  • jstrahanjstrahan Member Posts: 498
    yea can use real number from 0-1 ex. 0.1,0.25
Sign In or Register to comment.