How to use static functions in Godot 4.1

Опубликовано: 23 Февраль 2026
на канале: GoGameDev
2,943
63

Just a quick introduction to static variables and functions inside Godot using the static keyword, enjoy :)


My Godot 4 RTS course:
Coupon ends on 22/10/23.
https://www.udemy.com/course/godot-4-...
https://www.godotrts.com



0:00 Intro to static variables
1:10 Intro to static functions
2:05 Creating the world scene
2:15 Creating the enemy scene
2:35 Creating the enemy script
3:10 Creating the enemy manager scene
4:20 Enemy script (continue)
5:00 Enemy manager script (continue)
6:10 Enemy script (problem explanation)
6:50 Enemy script (problem fix)
8:35 Running the scene
9:00 Outro