How to change Player's size

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

I got a kinematicBody2D with an animatedsprite as child. I use $animatedsprite.scale.x = …
to change its size, but what can I do to change the KinematicBody2D’s size? (it is the main parent of the scene)

:bust_in_silhouette: Reply From: Scavex

You can go to the Transform option under Node 2D which is on your right Inspector Window and further Scale your Sprites easily

How can I do that with code?

MightyRat | 2020-06-12 17:31

I don’t understand though. Lets say you’re increasing the size of your sprite, you should simply increase the collision shape along with the increased sprite. I am also pretty new but hey, maybe you want to do something cool. As far as I’m concerned I don’t think there’s any way you can increase size of Kinematic body, after all it requires a sprite and a collision shape as two of the important parts. Increasing them both should do the trick. Can you tell what exactly it is that you’re trying to do ?
You should try increasing you Collision Shape along with the sprite using :

$CollisionShape2D.scale.x = Any value
$CollisionShape2D.scale.y = Any value 

Scavex | 2020-06-13 14:11