corona - How can I put a timer in my game? -


I am trying to make a scorer for my game in Corona SDK, but it has no advantage. How can I make a score keeper that connects every second, then saves higher points?

I don 't normally just give you such solutions, your problem is small for the future Start with trying to break into problems, how can I show text on my screen? After this, how can I update the text on my screen? And then start looking for ways to update each other. e.t.c. It makes it very easy.

  - local local score = variable local = score = display. ScoreTxt: setFillColor (1, 0, 0) - The listener, the update score and the update text for your timer local function scorecipper (event) score = "new score" ("Score:", 100, 200, original. Score + 1 scoreText.Text = "Score:" .core end - timer timer.formiform (1000, scorer, -1)    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -