Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to make timer
Started by tima.xxxyyy Sep 21 2019 07:33 AM

- - - - -
1 reply to this topic
timer
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

tima.xxxyyy

[GLOBAL: userInfoPane.html]
tima.xxxyyy
  • Observer

  • 7 posts
  • Corona SDK

So, I need a timer? that counts like 30 sec, 29 sec, 28 sec, and everye second text sets a timer's value(30,29,28)

And, if user do something,some time adds (28sec + 5sec)



[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Contributor

  • 944 posts
  • Corona SDK

Create a function where you do whatever changes you want and use this to call the function:
https://docs.coronalabs.com/api/library/timer/performWithDelay.html




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: timer