Possible to spawn actor and color change?

mandancemandance Member Posts: 87
edited November -1 in Working with GS (Mac)
Hey all, I bow down to those of you who are smarter then I! I'm in the middle of an update for pearl attack, and am trying to have actos spawn in random color hues. Only trouble is I can't use any more timers.

Comments

  • nulonulo Member Posts: 315
    inside the spawned actor create a "change attribute" behavior that will set self.green/blue/red to random(0,1)
    this way, as soon as this actor is spawned it will choose a random color, and stick with it.
    no need for timers.
  • StrobanikStrobanik Member Posts: 77
    ..and if you'd like to get even more variations on the colour hues make it (random(0,100))*0.01
  • quantumsheepquantumsheep Member Posts: 8,188
    Strobanik said:
    ..and if you'd like to get even more variations on the colour hues make it (random(0,100))*0.01

    Oooh - that's a nice tip - never thought of it like that!

    QS :)

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • mandancemandance Member Posts: 87
    God I love you guys. It's exactly what I needed and didn't hit my fps. Thanks
Sign In or Register to comment.