The [code]_process()[/code] function won't do anything until we add something to it. You might notice the underscore [code]_[/code] in front of the function name. This is a convention programmers use to coordinate work, and it'll only make sense once you have experience coding in Godot. For now, all you need to know is that if the function exists in your code, and it is called precisely [code]_process[/code], then Godot will automatically run it every [i]frame[/i]. When Godot draws on the screen, we call that a frame.
Funktionen [code]_process()[/code] kommer inte att göra något förrän vi lägger till något till den. Du kanske märker understrecket [code]_[/code] framför funktionsnamnet. Detta är en konvention. Det betyder att funktionen redan är definierad av Godot. Om funktionen finns och kallas exakt [code]_process[/code], kommer Godot automatiskt att köra den varje bildruta.
You might notice the underscore [code]_[/code] in front of the function name. This is a convention programmers use to coordinate work, and it'll only make sense once you have experience coding in Godot.
For now, all you need to know is that if the function exists in your code, and it is called precisely [code]_process[/code], then Godot will automatically run it every [i]frame[/i].
When Godot draws on the screen, we call that a frame.
Du kanske märker understrecket [code]_[/code] framför funktionsnamnet. Detta är en konvention. Det betyder att funktionen redan är definierad av Godot.
Om funktionen finns och kallas exakt [code]_process[/code], kommer Godot automatiskt att köra den varje bildruta.