So, im making a game, where when you go near an object (a chest, for example), a textureFrame appears, showing what key you need to press to open that object (key E in my game)
So i made an Area2D node around the chest and i connected the signal bodyenter to the KinematicBody2D.
Inside the function _onareabodyenter (body) i did getnode('TextureFrame').isvisible(true)
The texture frame is not a child of the kinematicbody and is not visible in the beginning
It doesnt work
I even tried : gettree().getroot().getnode('game').findnode('TextureFrame').is_visible(true)
How i can do that?