I made a general function for every time a button is pressed I want the buttons to wiggle. It seems to wiggle all buttons of the button family. Is there a more elegant way of doing this? Also using a tween is great but its unresponsive once you press the button. Is there a way to reset a tween or maybe use a different technique for this? I am tying to make bouncy buttons like you see in Clash Royale.
Pass button's UID in function parameters, and pick family instance inside the function by this UID.
Develop games in your browser. Powerful, performant & highly capable.
You need to pass the UID of the button to the function:
EDIT: Oops, sorry Dop, didn't see your reply!