Static Variables [GameMaker Studio 2.3]

Опубликовано: 21 Март 2026
на канале: SamSpadeGameDev
2,155
88

A short tutorial on what static variables in functions and constructors are and how to use them in GameMaker Studio 2.3. Part of the Coding Fundamentals in GML Tutorial Series.

Patreon Support
  / samspadegamedev  

Links:
https://manual.yoyogames.com/GameMake...

Github Source Code Repository
https://github.com/samspadegamedev/Yo...

Outline
0:00 Static Variables in Functions
0:40 Static Variables in Constructors
2:01 Code example for Static Variables in Functions
4:30 Shuffle an Array Example
6:42 Code Examples for Static Variables in Constructors
9:49 The Value of Static Variables
11:40 Summary

#GameMaker
#CodingFundamentals
#GML