Things to check
English | Hungarian | ||
---|---|---|---|
function | függvény | Learn GDScript From Zero | |
programmers | programozók | Learn GDScript From Zero | |
工程師是Engineer |
English | Hungarian | ||
---|---|---|---|
function | függvény | Learn GDScript From Zero | |
programmers | programozók | Learn GDScript From Zero | |
工程師是Engineer |
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.
Bizonyára észrevetted az aláhúzásjelet [code]_[/code] a függvény neve előtt. Ez egy konvenció. Azt jelenti, hogy a Godot már definiálta ezt a függvényt.
ha a függvény már létezik, és pontosan [code]_process[/code] a neve, akkor a Godot automatikusan futtatni fogja minden framen.