This might sound wierd but how do i get the spaces out from between the hours the colon and the minutes and also i need the time to show up on top of a screen:blit
EDIT: also is there an easy way to do something like if the two pictures intersect then turn on picture
like if you wanted to highlight something and you have a regular picture and that picture highlighted in a color then you say when the cursor and the picture interect turn on the highlighted picture
any help is greatly appreciated
Time function
Moderators: Shine, Insert_witty_name
I don't understand your questions, can you write it in more understandable English? Perhaps the clock example from http://www.luaplayer.org/gallery/ helps you.
Take a look at http://www.lua.org/manual/5.0/manual.html#5.7 and then at the description of strftime, for example at Microsoft and you should be able to build the correct format string.
For writing on top of your background use a tutorial at http://www.luaplayer.org/tutorial/ , perhaps the animation with the smiley and write the time instead of blitting the smiley on top of the background.
For writing on top of your background use a tutorial at http://www.luaplayer.org/tutorial/ , perhaps the animation with the smiley and write the time instead of blitting the smiley on top of the background.