![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | a human |
I know this is a stupid question, but how would I print a variable to the console?
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | a human |
I know this is a stupid question, but how would I print a variable to the console?
![]() |
Reply From: | kidscancode |
print(variable_name)
Hope this helps - not sure if you’re asking for more. See here for details, and other print functions that you may find useful:
Doesn’t help, thank tho
a human | 2019-12-31 11:10
The print statement will have to be inside a function and that function will need to be called at some point. You can put it inside the _ready() function to have it trigger when the program loads, inside _process(delta) to have it trigger on every game process update, etc.
vivavovuve | 2019-12-31 16:26
It’s the answer to your question. If you explain a little more what you’re trying to do, perhaps you can get a more complete answer.
kidscancode | 2019-12-31 17:30