How to get the width of scaled area2d Node

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

Hi there,

Firstly I am very new to Godot so bear with me, secondly I’m creating a game that is a clone version of [Stack game] in 2D. I managed to work the other parts but the problem is that I used a squared 32 pixel size sprite and I scale them in run time to [e.g. x= 0.5 and y= 1.5] for each stack. But now I don’t know how to get the width of game object and how to detect which side left with extra piece so that I could cut it down.

Any help is much appreciated