0 votes

I got this error: E 0:00:00.683 getglobaltransform: Condition "!isinsidetree()" is true. Returned: gettransform()
<C++ Source> scene/2d/canvas
item.cpp:483 @ getglobaltransform()
Sprite.gd:2 @ _init()
it doesn't stop me in the debug thingy, but it's still an error. If you know where I can find meanings to errors, or if you know what this is please tell me.

in Engine by (16 points)

I don't think I have enough to answer this question, but you are probably trying to get global transform before the sprite enters the scene tree. If you create that sprite through code, make sure you add it as a child before you ask for its global transform. And judging from what I see, it seems the error is at the line 2, which might mean that you ask for its global transform before the ready function.

ok, thank you.

1 Answer

0 votes

This should help you understand errors in godot.

by (1,051 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.