The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I'm using tweens to give buttons a bit more oomph and while I could use scale to achieve the same effect. I just don't like the artifacting it creates on pixel art. So I'm trying to tween size to get a little wobble going on hover and press.

The issue is that increasing the size only adds to the right side when I'd want it to add to both sides simultaneously. I've tried some of the layout dirs, anchor and container sizing options and none seems to have the intended effect.

Thanks in advance!

Godot version 4.1
in Engine by (33 points)

If you can't find a solution, you'll probably have to tween the position by half the value in the opposite direction.

I realize I read your question too quickly and missed the fact that you don't want to use scale here - which is what I suggested in the answer. I'll hide my answer.

I see, I tried it but it was a bit distracting given how my button has textures within it but it works on clean 9slice buttons though. Good workaround, thanks.

No worries. Made the same mistake many times :)

Please log in or register to answer this question.

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.