I got an error, and I don't know what it means.

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

I got this error: E 0:00:00.683 get_global_transform: Condition “!is_inside_tree()” is true. Returned: get_transform()
<C++ Source> scene/2d/canvas_item.cpp:483 @ get_global_transform()
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.

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.

kedalovo | 2021-05-15 16:59

ok, thank you.

ILearnToCode | 2021-05-15 19:26

:bust_in_silhouette: Reply From: magicalogic

This should help you understand errors in godot.