0 votes

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

This is what is right now

This is what I want

in Engine by (17 points)

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 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.