Jump to content

In Game Clock


Slimwaffle
 Share

Recommended Posts

So I was finding that delaying things for x amount of seconds was way harder then it needed to be. And I wanted to be able to make things trigger at set times. So I made a simple script for an in game clock. I am going to post it here for all to use.

If you can't get it to work just remove the code that loads and draws the clock.tex file to screen.

hours and minutes are globals. So you will be able to reference them from your other scripts.

Clock.lua

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...