Scaling TouchScreenButton from center

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By chuzzleshpek

Hi, I need to make it so that when a player taps on the TouchScreenButton it scales up. I’ve done it with a signal function but it scales up from the upper left corner. Does anyone have a suggestion how could I set the pivot offset so that the TouchScreenButton scales from its center?

:bust_in_silhouette: Reply From: zhyrin

You could parent it to another node, center it in the parent, and scale the parent instead.

I’ll try to do it that way, thank you

chuzzleshpek | 2023-05-22 19:21