#there is an error that i don't know where it is

8 messages · Page 1 of 1 (latest)

surreal wedge
#

I think what happened is visual studio was using 4 space characters for indentation in the majority of the file, then the first line in this function uses a tab character

#

it could be due to copy/paste

#

it needs to be consistent throughout the file

#

high level languages like gdscript use indentation instead of curly brackets to group lines of code, so they’re very picky with how you indent

thick crag
#

You can't mix spaces and tabs you either use only tabs or only spaces

#

I can't see the tab icon in the file however, try to open it in Godot instead of vscode

rocky spoke
#

I don't use Visual Studio Code, but you can probably Ctrl+F and search for \t, then replace it with spaces

#

If I were to guess, it would probably be on line 87 after the colon or something