|
Hello. How can I have a static variable decrease at a set rate after a period of inactivity? Ex: A value increases when a player shoots an enemy. If the player has shot no enemies for 5 seconds, the value will start to decrease at a rate of 2 every 3 seconds. Thanks
(comments are locked)
|
|
Something like this -
(comments are locked)
|
|
Humm, try something like this:
Hasn't been tested, in a hurry - sorry. That will invoke Timer every frame, and every Timer call will reduce the score by exactly 4.
Dec 26 '10 at 04:46 AM
Loius
(comments are locked)
|
