Tabletop Simulator

Tabletop Simulator

184 ratings
Digital Hourglass
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc
File Size
Posted
Updated
22.579 KB
Nov 9, 2017 @ 2:36pm
Jan 17, 2018 @ 4:54pm
2 Change Notes ( view )

Subscribe to download
Digital Hourglass

Description
It's a digital hourglass! Flip it and it counts down. And because it is me making it, I jammed a bunch of extra features into it to try to please everybody. I am all but certain I will have failed anyway.

Feature List:
  • Flip It!: Flipping the device over (f key by default or picking it up + middle mouse button) is what starts the countdown.
  • Reset Button: Cancels the current countdown and resets the current time.
  • Pause Button: Stops the countdown (numbers turn grey) until pressed again. Flipping the timer will not resume the countdown.
  • Reset Mode: (lower left button) When you flip the timer over while it is running, it will start a new countdown. Example, 10 second countdown, 2 seconds left, flip it over, the new countdown starts at 10.
  • Hourglass Mode: (lower left button) When you flip the timer over while it is running, it will "reverse" the countdown, like an hourglass would. Example, 10 second countdown, 2 seconds left, flip it over, the countdown starts at 8.
  • Fadeout Mode: (lower right button) When the time counts down, it can transition between two colors. By default they are white and black, but this can be changed at the top of the script.
  • Input Time: I've made it easy to change the time on the counter. Just click in the input, type in a number and click out of it. This will reset any currently running timer.

As always, I'm interested in any bugs people run into. This was a surprisingly tricky one because of how I juggled coroutines to make it work, so if it misbehaves I'd like to know. Enjoy

[ko-fi.com]
Popular Discussions View All (1)
0
Nov 8, 2018 @ 6:51pm
rewinding breaks the timer
theDissilent
30 Comments
Mahoozy Dec 11, 2022 @ 12:38pm 
Cannot get the colour fade to work. Want to start at red and end up black, not working
Cron The destroyer Apr 10, 2022 @ 2:49am 
does anyone know where i could find a digital hourglass timer irl?
UndyingDuck Sep 17, 2021 @ 11:10am 
was a bit shit ngl
Flippster Jul 28, 2020 @ 12:45am 
Flippster Jul 28, 2020 @ 12:44am 
Hey. I made some alterations to this excelent hourglass. Adding a warning period, which changes the color of the hourglass and plays a looping effect. The sounds have been added as secondary assetbundles.
But there is one issue you might want to consider adding to yours. The way you add delta times together adds a fair bit of error in how long the timer runs (in my limited testing about 10%).
The solution is to keep the start time constant (only updated during pausing), and calculate time left based on current time and the timer length.
machineguy Oct 19, 2019 @ 1:40am 
Simple and sleek. Thanks!
Lagake Mar 7, 2019 @ 9:44pm 
Continued: But what would be nice is to have the option to set both "sides" of the clock, currently - if I have the timer on the hourglass setting and set for 30 seconds, the other side will have 0 seconds on it (until you press start then it starts counting up). What would be awesome if you could switch modes and set the time in seconds for each "side". If, for example, each player started with 60 seconds, Player A press starts and flips it after 15 seconds. Now Player B has 75 seconds (60 from start, + 15 from Player A), and so on. I am over explaining this but I wanted to get the concept across, hopefully you're still supporting this workshop page! Thanks
Lagake Mar 7, 2019 @ 9:43pm 
Very nice! Would it be difficult to add a feature to the hourglass mode? I was looking for a timer for two player games where as Player A uses time, Player B gains it (each side being a player, flipping it switches players). Currently you have it set up where I can work around it by letting the clock run until I have the time set evenly for both players.
The Aardvark Feb 22, 2018 @ 10:11pm 
It's a good timer
JD Feb 18, 2018 @ 8:17pm 
Thanks man. Do you think you could make a basic hour glass with sand somehow?