Timer Value
![Lu_merlin](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hello everyone.
I don't understand how i can change the timer value. This is what i tried :
-------------------
Every 2 seconds change game.value to game.value-1
every game.value
Spawn actor x
--------------------
But nothing changes "x" always spawns the same. (and doesn't change every 2 secs)
pls help!
lu_merlin
I don't understand how i can change the timer value. This is what i tried :
-------------------
Every 2 seconds change game.value to game.value-1
every game.value
Spawn actor x
--------------------
But nothing changes "x" always spawns the same. (and doesn't change every 2 secs)
pls help!
lu_merlin
Comments
I have a demo called "timer with variable rate"
Go into the New section of the GS creator start screen and type that in as it is in the quotes above. Then look in the spawner and you'll see how to do it. BE SURE TO CHECK ALL THE OTHERWISE SECTIONS!!!!
So how often is the interval changed to what?
even the one otherwise rule.
is it important that gamespeed and oldgamespeed are global attributes?
You can copy the rules from the demo and paste them into your project, BUT you must create the attributes yourself in your project and go into the rules your pasted and add those attributes from the drop down menu in the behaviors. And check all the otherwise sections.
Again, it works in the demo. If you copy it correctly it will work in your project.
Good luck!