I need an array of timer, which set a timer for each element of an array, consisting of 20 elements.
example:
objects (0) activates the timer (0) and the event "timer (0) _Tick"
objects (1) activates the timer (1) and the event "timer (1) _Tick"
....
objects (19) activates the timer (19) and the event "timer (19) _Tick"
is it possible?
How to recognize the timer which has triggered the tick event?
thanks
example:
objects (0) activates the timer (0) and the event "timer (0) _Tick"
objects (1) activates the timer (1) and the event "timer (1) _Tick"
....
objects (19) activates the timer (19) and the event "timer (19) _Tick"
is it possible?
B4X:
Dim timerEating(20) As Timer
timerEating(actorID).initialize("timerEating", 3000)
timerEating(actorID).Enabled = True
B4X:
Sub timerEating_Tick
'>> how to recognize the timer which has triggered the tick event?
end sub
How to recognize the timer which has triggered the tick event?
thanks