Little issue with timers
Hello
I'm trying to make a game in which enemies will spawn to the screen and depending on the score (you get score by killing enemies) or the time that passes the spawn rate will increase and the enemies will spawn faster.
the way I tried to accomplish this is I made an attribute called spawnrate. and then made a rule that every 30 seconds spawnrate will decrement. and made another timer that "every spawnrate seconds" the enemy will appear on screen.
But for some reason the attribute spawnrate doesn't update in the timer. It does decrement with the rule I created, but the enemies keep spawning at the same rate as the beginning
any ideas what is going on? or do you know a way to achieve this using a different method?
thanks a lot
steve
I'm trying to make a game in which enemies will spawn to the screen and depending on the score (you get score by killing enemies) or the time that passes the spawn rate will increase and the enemies will spawn faster.
the way I tried to accomplish this is I made an attribute called spawnrate. and then made a rule that every 30 seconds spawnrate will decrement. and made another timer that "every spawnrate seconds" the enemy will appear on screen.
But for some reason the attribute spawnrate doesn't update in the timer. It does decrement with the rule I created, but the enemies keep spawning at the same rate as the beginning
any ideas what is going on? or do you know a way to achieve this using a different method?
thanks a lot
steve
Comments
thanks codemonkey
to find codemonkeys demo search for "Increasing Spawne(Demo)" inside the gamesalad creator in the plus sign tab.. and you can find it there