Timer Bug? Can't use self attribute that changes?
scitunes
Member, Sous Chef Posts: 4,047
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
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
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
thanks!
Good luck with it!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
did you find a solution for your problem? i need same thing like you.
thanks in advance