|
Hello. How can I have a static variable be set to a specific value after a set amount of time? I dont want to use Invoke Repeating because the values will not be based on the same formula (ex: it wont be something like "every 2 seconds add 5"). For example, after 30 seconds the value will equal 5, after 45 it will equal 20 and after 60 it will equal 15 etc. Thanks
(comments are locked)
|
|
There are several methods, but the easiest way is to have a interval variable and a timer variable. Lets say we want to trigger something every second:
now:
again, there are many ways to do it but this is a quick and dirty way I use often. Exactly what I was looking for, many thanks!
Jan 05 '11 at 12:57 AM
Socapex
(comments are locked)
|
