Changing colors using timer

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!

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    I did this for the 'ultimate' colour in Air Supply.

    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 :D

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

  • mounted88mounted88 Member Posts: 1,113
    It's been known that timers do lag down a game. Maybe you might want to do the animate behavior, not sayin you have to but just a thought.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited April 2013
    I don't find timers to be that much of an issue. My current game has tons and it runs at 60 FPS solid. In regards to accuracy self.time is more accurate yes but as to performance I haven't seen it in my game and I'm begining to think this concept is flawed. I've been working and analizing my game for five months now and i just don't see it.
  • mounted88mounted88 Member Posts: 1,113
    I don't find timers to be that much of an issue. My current game has tons and it runs at 60 FPS solid. In regards to accuracy self.time is more accurate yes but as to performance I haven't seen it in my game and I'm begining to think this concept is flawed. I've been working and analizing my game for five months now and i just don't see it.
    I agree, and I'm not saying all games will lag down. But I'm sure it doesn't help games with bad logic to run any better. Personal I use timers and don't have any problems that I can see.

    I just wanted to make him aware that some people do have issues with timers that's all. :)
  • SocksSocks London, UK.Member Posts: 12,822
    @QuestionMan

    Here's one without using timers, it cycles through a spectrum of colours:

    http://www.mediafire.com/?monwqwjmiw4jv4f
Sign In or Register to comment.