Slimwaffle Posted August 16, 2018 Posted August 16, 2018 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 Quote
macklebee Posted August 17, 2018 Posted August 17, 2018 context:DrawText(string.format("%02d:%02d",hours,minutes), 40,175) will give your displayed clock time leading zeroes. EDIT -- gave a simplified version 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
Slimwaffle Posted August 17, 2018 Author Posted August 17, 2018 ohh thanks heaps I didn't even think of that Quote
Recommended Posts
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.