0 votes

I want to create a button that shrinks smaller when it is pressed. Currently when I press the button, it shrinks, but it resizes around the top left corner instead of the center. I tried changing the rectpivotoffset value but it didn't affect anything.

Godot version 3.3.3.stable.mono
in Engine by (193 points)

1 Answer

0 votes


I solved this by making the button a child of a node that has transform properties, and then changed its' scale upon click

by (193 points)

This is a good idea. Also, you can click the check mark on your answer to mark it as the answer (you don't have to put the word "Resolved" in there).

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.