I think the reason the editor is complaining about the indents and having strange requirements is because the other code, above the code you marked, uses spaces for indentation rather than tabs. That is why the little grey arrows (>|) before the code are not visible on lines 9 -> 24.
If I recall correctly, you can convert from spaces to tabs in Godot's script editor. I think it is under the edit menu. Let me know if you cannot find it and I'll see if I can get a screenshot of it.
Once you have all of your code using either spaces or tabs, then you should be able to use a consistent amount of spaces/tabs across your code. :smile: