system
1
|
|
|
 |
Attention |
Topic was automatically imported from the old Question2Answer platform. |
 |
Asked By |
Jedubya |
Hello
i am new to godot i am making a 2d plat former and i need to have global vars but
the var comes out like this
Null
HealthUi:[Node2D:1241]
What is the problem? You need to be more explicit about what exactly you want to do, the code you used, and what your issue is.
Zylann | 2022-03-17 13:50
system
2
|
|
|
 |
Reply From: |
rhennig |
If you need global variables you probably can use autoload. I have a short video showing how it works if you’re interested. https://www.youtube.com/watch?v=EO-VfyFa1cc
But seeing your output you are probably printing the node itself, if you want to get the name you can use get_node(‘nodeyouwant’).name
thank you for your help
Jedubya | 2022-03-18 15:30