Don't indent variable declarations!

Hi, I couldn’t understand at first why my UFO would not move until I realized that I had accidently indented my global var declaration. I guess Godot was treating it as a function and not being parsed correctly. This is similar to Python syntax.

1 Like

yea, very similar with that respect, i forget as well and sometimes takes ages to figure out, especially if i put a space after or before a tab and just cant see it :frowning:

Privacy & Terms