Change color of text at random using a timer --- please help!!!
katslump
PRO Posts: 31
I need an easy way to say
"every 1 second"
---change Display Text color to a random color
"every 1 second"
---change Display Text color to a random color
Comments
so say
every 1 sec do:
change self.color.green to random(0,1)
change self.color.red to random(0,1)
change self.color.blue to random(0,1)
but this is with an actor and not with the display text...
I don't think this is possible with display text so I think you have to make an white text image and import this to the actor.
hope this helped
good luck!
✮ FREE templates at GSinvention ✮
✮ Available for hire! support@gsinvention.com ✮
I have tried your way with the actor; however it doesn't work.
I originally had the Opacity at 0 for the actor (so the background of the text wouldn't be white) so I thought that might have been the problem. However, even after I changed the opacity nothing seemed to happen.
Hmm.
Timer / Every 1 second:
Change Attribute self.color.Red to: random(1,255)/255
Change Attribute self.color.Green to: random(1,255)/255
Change Attribute self.color.Blue to: random(1,255)/255
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
You can (depending on how your project is set up) apply the colour over your GameSalad generated text using a transfer mode.
(example attached):