print variable to console

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By a human

I know this is a stupid question, but how would I print a variable to the console?

1 Like
:bust_in_silhouette: Reply From: kidscancode

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