Timer Bug? Can't use self attribute that changes?

scitunesscitunes Member, Sous Chef Posts: 4,047
edited November -1 in Tech Support
I have a spawner in a timer. To make the game harder I want the frequency of the spawning to change as the game goes on. So I created a real self attribute and use some simple math to make it change as time goes on. I put a display text behavior in to check that it is changing as it should. It is working fine, but the timer that I put the attribute into just keeps spawning at the initial rate. So if I set the real attribute to 1 and then change it every 2 seconds the spawner will keep spawning one actor every 1 second even though the real attribute is showing that it is increasing exactly as it should - so must be something wrong with the timer. Any ideas for a workaround?

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    I have a timer that just counts up every 1 second.

    Within the spawner rule I have the following:

    If timer = 10
    For 20 seconds
    Every 5 seconds
    Spawn Enemy 1

    If timer =35
    For 20 seconds
    Every 2 seconds
    Spawn enemy 2

    Does that help, or have I got the wrong end of the stick again?

    QS :)
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Totally different way of doing it, but if it works then I love it! (especially since my way only worked in mind - which can be a scary place!)

    thanks!
  • quantumsheepquantumsheep Member Posts: 8,188
    You may have noticed that my way totally avoided any use of math ;)

    Good luck with it!

    QS :)
  • ixolitixolit Member Posts: 15
    @scitunes

    did you find a solution for your problem? i need same thing like you.

    thanks in advance
Sign In or Register to comment.