Tabletop Simulator

Tabletop Simulator

Not enough ratings
Big, Animated Button
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Templates
File Size
Posted
7.319 KB
19 Nov, 2016 @ 7:43pm
1 Change Note ( view )

Subscribe to download
Big, Animated Button

Description
An animated, scripted button with a sound effect. It is meant to activate your own code or have code added to it to execute. Right now, it is just a basic, animated button that you can left/right click with your mouse to trigger it. It also has built-in protection to prevent you from spamming clicks.

Code is simple and commented, with basic instructions of where to add code if you want to have this device trigger your own stuff.

Also, the color of the object is tied to the red part of the button. Change its tint and the red part of the button will be changed to match it. Its a nice quirk of asset bundles
10 Comments
Eggie7283 9 Apr @ 2:41pm 
how to change sound effect?
Wisp 19 Jul, 2022 @ 6:05pm 
Hi MrStamp, can you post the source of this button please. I want to make buttons with my own unique sounds.
ProtestTheBread 10 Apr, 2022 @ 7:55pm 
Love your button. Thank you for the comments in the script :^)
[ProN00b] Christmas 21 Feb, 2021 @ 7:13pm 
hi there, the button randomly stopped working in my mod and a roll back and restart did not resolve. i have 20+ buttons all yet to be scripted and i only scripted 1 of the buttons to begin with.
Rice 13 Dec, 2016 @ 9:50pm 
It does not require asset bundles to work. The tintable part of an object is whatever is listed as a material in the .obj file. (Model has to have seperate parts, but multiple parts can be tintable)
MrStump  [author] 13 Dec, 2016 @ 7:08pm 
Generally speaking, yes. Black will not tint, so for a lot of color-changing tools I will make a lot of the elements black and the rest white (white shows tint well).

There may be other tricky ways to do it, but none that I know of.
Unreal Ed 13 Dec, 2016 @ 6:08pm 
So making only a specific part of an object react to color tint requires AssetBundle work?
MrStump  [author] 21 Nov, 2016 @ 7:41pm 
Good ideas, both of you. I'm happy to see people take this as intended: as a blank slate to build something on.

Or, you know, a fun clicky button.
H3xx 21 Nov, 2016 @ 1:16pm 
Or a Family Feud type game. Make it change color based on who pressed it...
entr0py 21 Nov, 2016 @ 6:49am 
Interesting... i can see something like this is use as a 'Trouble game' dice popper.