Godot Version
4.6.2
Question
Hello!
I am following this (https://www.youtube.com/watch?v=8U9BVvvhEhw) and nothing I do seems to fix the unexpected indent errors that appear on these two lines. Can tell me what I did wrong and how do I fix it?
4.6.2
Hello!
I am following this (https://www.youtube.com/watch?v=8U9BVvvhEhw) and nothing I do seems to fix the unexpected indent errors that appear on these two lines. Can tell me what I did wrong and how do I fix it?
You’re missing a colon : at the end of func refresh_scene() line.
They’re maybe some spaces in the indents, so move them all the way back to the start of the line then tab them back in, or highlight the code and choose “Convert Indent to Tabs” from the editor edit menu.
And refresh_scene is missing a colon at the end.
Personally I would code it as follows:
func refresh_scene() -> void: