How do i spawn faster? Over a period of time.
DanielA
Member Posts: 101
Ok well im working on a new game. But i have come across a problem with a spawner actor. What im trying to do is over time the spawner starts to spawn faster.
I have tried a few things: I created an attribute (REAL) called "spawnSpeed" set it to (.7), after 10 seconds (change attribute spawnSpeed to spawnSpeed - .1) and nothing works.
I have also tried: Creating an attribute (INTEGER) "spawnSpeed", creating a rule in Spawner saying that (spawnSpeed = 7) do (spawn every .7 seconds) after (10 seconds change spawnSpeed to 6) and repeat the rule just changing the speed.
I hope that you understood what i said just there... Anyone els have any ideas of how i could do this idea?
I have tried a few things: I created an attribute (REAL) called "spawnSpeed" set it to (.7), after 10 seconds (change attribute spawnSpeed to spawnSpeed - .1) and nothing works.
I have also tried: Creating an attribute (INTEGER) "spawnSpeed", creating a rule in Spawner saying that (spawnSpeed = 7) do (spawn every .7 seconds) after (10 seconds change spawnSpeed to 6) and repeat the rule just changing the speed.
I hope that you understood what i said just there... Anyone els have any ideas of how i could do this idea?
Comments
Im having the same problem. seems like a bug inside the timer expression.
The actor I'm editing is a hidden object spawning balloons - you'll notice my timers are not set up within a rule as the balloons start spawning when the scene loads - you'll want to change this if you don't want the same thing in your game.
HIDDEN OBJECT (SPAWNER):
Timer - for 10 seconds
Timer - every 3 seconds spawn balloon
Then
Timer - after 10 seconds
Timer - every 1 seconds spawn balloon
Does this help?
http://gamesalad.com/game/play/59180
Here is how it can be done:
http://gamesalad.com/wiki/how_tos:gsc_variable_timer_speed