Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | JulioYagami |
E 0:00:32:0637 Condition ’ !is_inside_tree() ’ is true. returned: get_transform()
scene/2d/canvas_item.cpp:482 @ get_global_transform()
GameHUD.gd:10 @ _add_hint()
FallingTreeObjectEvent.gd:8 @ _on_Area2D_body_entered()
This is the code:
func _add_hint(text: String):
if not AutoLoad.showing_hint:
var _myClass = AutoLoad.RESOURCES.HUDHINT
var _myInstance = _myClass.instance()
_myInstance.global_position.y = 256
_myInstance.text = text
add_child(_myInstance)