Thejaxinator 106 Posted December 5, 2015 So my game that i need help for is time based i need to have something that lowers the timer the settings i found set it to a time like even if it was 12:00 it there is no way to make go to 2:00 so that it goes down even if it is 4:25 so it would need to be 2:45 so how can i make it go down by a set number Share this post Link to post Share on other sites
lonequeso 1,921 Posted December 6, 2015 (edited) I've never used the actual timer setting. You can make a variable instead. Doing it this way, you'll only be able to display by seconds, but better than nothin', right?Let's see... The game runs at 60fps. Say the event is five minutes long. 5 x 60= 300. So the timer Variable would be set to 300 to start. To get it to count down in seconds instead of every 1/60th of a second put a Wait command of 60s. That'll create a timer that counts down accurately. Since it's a variable you can easily change it to whatever number to want if needed. So if say, the player got penalized 10 seconds, you would just have to subtract 10 from the variable. To display the timer, there's either a script call or a script to do it. I've seen a simple one that displays the player's gold so I'm sure displaying a variable in a window is pretty simple. You should make a post in Script Requests for that. In the meantime, you can test the timer event. An easy way to test the variables is to press F9 while play testing. It'll will show you every switch and variable in your database. I mention it because I have to get in the habit of using it myself. It makes things so much easier to test. Edited December 6, 2015 by lonequeso Share this post Link to post Share on other sites
Jonnie91 1,149 Posted December 6, 2015 Galv's Variable Timer is one of the best timer scripts that I've used, it's something that I've used in my time based project. It provides all the functions needed, and more 1 Share this post Link to post Share on other sites