Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

How to display 'individual' time in app ?
Started by cornfield May 21 2018 03:38 AM

1 reply to this topic
timer event text object time date api
This topic has been archived. This means that you cannot reply to this topic.
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Observer

  • 6 posts
  • Corona SDK



I'm trying to display the time text in my app. But, this time will run, only after the application is run. If an app exits, then the in-game time will stop.
For example, I want to create a time display like "10:00". This time will run from "09:00" to "22:00". I am trying to make it use display.getText api.
But, how to make this time running (dynamic) ?. Api's 'what should I use ?. Or how?
Thank you

[TOPIC: post.html]

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,925 posts
  • Enterprise

There is a sample app in the SampleCode/GettingStarted/Clock folder inside the folder where Coronal lives on your computer. I would look at the source of that sample app to get a start on this.