Kingdaro
25e6035d54
Fixed remaining time on during function
...
When expired, the remaining time should never be less than 0.
2016-05-23 19:05:17 -04:00
Kingdaro
6cf4a54d9d
Fix for :during() call without an after function
2016-05-23 19:03:58 -04:00
Kingdaro
d77e0a2324
Fix for https://github.com/vrld/hump/issues/66
2016-05-23 18:45:20 -04:00
Matthias Richter
8435fc798f
Fix #60 - Inconsistent self:calls() in timer and signal
2016-05-01 14:40:58 +02:00
Matthias Richter
c7c1b8e269
add timer.script(f)
2015-12-13 22:49:18 +01:00
Matthias Richter
f6c5f621e7
Code cleanup
2015-10-12 08:21:16 +02:00
Matthias Richter
a9061c68f0
[timer] Place new() at the end of the module.
2014-11-23 18:00:50 +01:00
headchant
95f07233b9
Punctation change
...
Unifies instance and default timer object access of functions to '.' for example: timer.clear(). For instances you had to use ':' until now.
2014-11-13 16:00:20 +01:00
Matthias Richter
ff60ae5372
Fix issue #24 : cancel not removing periodic timers.
2013-08-22 11:10:56 +02:00
Matthias Richter
4f6c85e514
Add timer.tween
2013-03-31 20:53:53 +02:00
Matthias Richter
c6b75aaa9f
Fix issue #13 : Timer.do_for crashes when after is not supplied
2013-03-23 15:13:12 +01:00
Matthias Richter
8d4e5bb65f
Update license header
2013-02-20 16:54:57 +01:00
Matthias Richter
b02273c936
timer.lua: Add do_for(). Remove Interpolator, Oscillator.
2012-10-02 18:28:22 +02:00
Matthias Richter
7aa3073037
Add individual timer support (as requested by mofr)
2012-05-08 17:34:41 +02:00
Matthias Richter
adcceed73b
Update license header
2012-04-10 17:00:02 +02:00
Matthias Richter
42c3b9b47e
Make Timer.add[Periodic]() return timer handle. Export Timer.handle
2012-03-31 15:05:07 +02:00
Matthias Richter
7c257c891d
Implement issue #4 : Ability to cancel specific timers
2012-03-31 14:31:43 +02:00
Matthias Richter
28b698fb00
Eliminate use of module(...) function
2011-07-06 14:19:31 +02:00
Matthias Richter
610de8fc98
Make periodic timer stoppable
2011-06-04 15:45:25 +02:00
Matthias Richter
c3e78cce45
Code cleanup
2011-04-24 21:12:33 +02:00
Matthias Richter
762de78e51
API change: Call interpolator only when interpolation ongoing.
2011-01-20 15:26:12 +01:00
Matthias Richter
9bcb428555
Make proper tail recursion calls
2011-01-19 16:41:59 +01:00
Matthias Richter
d1d6dbb056
Make proper modules
2011-01-18 17:44:38 +01:00
Matthias Richter
0dc9eacc57
Bugfix: Timer.update(dt) sometimes fails on `for'
...
Deleting functions from the function register while looping over
it could break the next-iterator in the for loop. To prevent that
from happening, we collect the functions to be deleted and delete
them in an extra loop.
Functions will still only be called after they have been removed
from the timer register.
2011-01-12 12:18:37 +01:00
Matthias Richter
f093abdad1
Forward interpolating function arguments, add oscillator
2010-10-18 12:31:01 +02:00
Matthias Richter
12dd144d0b
forward return value of interpolating function
2010-10-17 16:28:50 +02:00
Matthias Richter
2579a7f6bc
Return nil if interpolation is stopped
2010-10-17 16:03:52 +02:00
Matthias Richter
0be37cfbba
add timer module
2010-10-17 15:06:35 +02:00