Data Realms Fan Forums http://45.55.195.193/ |
|
Timing http://45.55.195.193/viewtopic.php?f=73&t=14869 |
Page 1 of 1 |
Author: | Mind [ Fri May 22, 2009 7:27 pm ] |
Post subject: | Timing |
Anyone know how to make something go on for x amount of seconds? Like i want an effect im making to happen for "x" seconds.. Any help? Thanks |
Author: | Duh102 [ Fri May 22, 2009 9:25 pm ] |
Post subject: | Re: Timing |
If you create a timer, it would be simple. Something like-a this: Code: if timer:IsPastTime(2000) and not timer.IsPastTime(10000) then --code-- end You can probably guess, but putting that in your update will check to see if the time is between 2000 ms and 10000 ms since creation of the timer. You can also call timer:Reset(); (I think) to reset the timer. |
Author: | Mind [ Fri May 22, 2009 10:08 pm ] |
Post subject: | Re: Timing |
alright, thanks |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |