0 votes

I did resize it going in to texture and not scale. Scale has been set to (1,1). But when i run the scene, its a huge sized sprite. Apparently its not resizing no matter what. The Image texture is 434 x 665. Is that maybe the problem?

How can i reduce the size?

Thanks

in Engine by (73 points)

2 Answers

0 votes

Check the Scale of whatever object it's parented to, and the scale of that object's parent, and so on until you get to the top of the tree.

The Sprite having a Scale of (1, 1) means that it will have that scale relative to its parent. If its parent has a Scale of (2, 2), then the Sprite will effectively be 2x the image size, because its scale in the Viewport will be (2, 2) * (1, 1).

Also be aware that Physics objects can't be scaled -- even if you have some scale set in the editor it'll revert at runtime.

by (101 points)
0 votes

Though you don't want to change the scale on the physicsbody parent, you should have no problem setting the scale on the sprite.
So set the scale of the sprite, not the size.

by (1,326 points)
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 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 webmaster@godotengine.org with your username.