0 votes

E 0:00:32:0637 Condition ' !isinsidetree() ' is true. returned: gettransform()
scene/2d/canvas
item.cpp:482 @ getglobaltransform()
GameHUD.gd:10 @ addhint()
FallingTreeObjectEvent.gd:8 @ onArea2Dbodyentered()

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)
asked Feb 2 in Engine by JulioYagami (470 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.