How to print variable value?

Godot Version



Might seem a little bit of a silly question, but how do you print variables to the console?

Screenshot 2024-03-11 at 11.12.07 AM
This does not work.
Error at (11, 1): Unexpected “Identifier” in class body.

I am new to gdscript and it appears to have quite a few limitations and quirks so I do need some help.

You have to put print() inside a function

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.