Changing colors using timer
QuestionMan
Member Posts: 81
I'm trying to give my titles some 'pizzaz' and I basically want to have my title change into several colors using a timer (I am trying to do this without the animation function, it will make it more efficient I believe). Does anybody have an idea of how to do this?
I've been trying 'change attribute' function, and doing 'every 0.0blabla seconds' 'change attribute green to green*-1.03' ---something along these lines, its changing the color, but only once
Thanks for any help!
I've been trying 'change attribute' function, and doing 'every 0.0blabla seconds' 'change attribute green to green*-1.03' ---something along these lines, its changing the color, but only once
Thanks for any help!
Comments
What I did was put in a integer variable called 'colour number' that randomly chose a number every X seconds between 1 and 8.
Then a rule for each number, e.g.
If colour variable = 1
change red to 1
change blue to 0
change green to 0
if colour variable = 2
change red to 0
change blue to 1
change green to 0
etc etc
That should work, but you could probably be more efficient these days and use tables to store the RGB numbers!
Hope that helps!
QS
:
DDr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
I just wanted to make him aware that some people do have issues with timers that's all.
Here's one without using timers, it cycles through a spectrum of colours:
http://www.mediafire.com/?monwqwjmiw4jv4f