Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

cornfield

[GLOBAL: userInfoPane.html]
cornfield
  • Observer

  • 6 posts
  • Corona SDK

Hi.

 

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]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,308 posts
  • Corona Staff

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.

 

Rob




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: timer, event, text, object, time, date, api