Tabletop Simulator

Tabletop Simulator

192 beoordelingen
Digital Hourglass
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Assets: Scripting
Tags: Misc
Bestandsgrootte
Geplaatst op
Bijgewerkt op
22.579 KB
9 nov 2017 om 14:36
17 jan 2018 om 16:54
2 wijzigingsnotities (weergeven)

Abonneren om te downloaden
Digital Hourglass

Omschrijving
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]
Populaire discussies Alles weergeven (1)
0
8 nov 2018 om 18:51
rewinding breaks the timer
theDissilent
30 opmerkingen
Mahoozy 11 dec 2022 om 12:38 
Cannot get the colour fade to work. Want to start at red and end up black, not working
Cron The destroyer 10 apr 2022 om 2:49 
does anyone know where i could find a digital hourglass timer irl?
UndyingDuck 17 sep 2021 om 11:10 
was a bit shit ngl
Flippster 28 jul 2020 om 0:44 
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 19 okt 2019 om 1:40 
Simple and sleek. Thanks!
Lagake 7 mrt 2019 om 21:44 
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 7 mrt 2019 om 21:43 
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 22 feb 2018 om 22:11 
It's a good timer
JD 18 feb 2018 om 20:17 
Thanks man. Do you think you could make a basic hour glass with sand somehow?