Uploaded January 2020 | Updated December 2026, 3 hours ago
A short tutorial about what variable scope is and how to use it in GameMaker. Part of the Coding Fundamentals in GML Tutorial Series in GameMaker Studio 2
Patreon Support
patreon.com/samspadegamedev
Links:
docs2.yoyogames.com/source/_build/3_scripting/3_gml_overview/6_scope.html
en.wikipedia.org/wiki/Scope_(computer_science)
Github (source code and slides)
github.com/samspadegamedev/GML-Coding-Fundamentals/tree/master
Outline
0:00 What is variable scope?
1:21 Global Scope
2:15 Instance Scope
3:28 Local Scope
4:20 Scope Overview
4:54 Code Example
7:29 Summary
#GameMaker
#CodingFundamentals
#GML
A short tutorial about what variable scope is and how to use it in GameMaker. Part of the Coding Fundamentals in GML Tutorial Series in GameMaker Studio 2
Patreon Support
patreon.com/samspadegamedev
Links:
docs2.yoyogames.com/source/_build/3_scripting/3_gml_overview/6_scope.html
en.wikipedia.org/wiki/Scope_(computer_science)
Github (source code and slides)
github.com/samspadegamedev/GML-Coding-Fundamentals/tree/master
Outline
0:00 What is variable scope?
1:21 Global Scope
2:15 Instance Scope
3:28 Local Scope
4:20 Scope Overview
4:54 Code Example
7:29 Summary
#GameMaker
#CodingFundamentals
#GML

![Object Inheritance [GameMaker Studio 2]
A short tutorial on object inheritance in the Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Resource Links:
https://docs2.yoyogames.com/source/_build/2_interface/1_editors/objects.html
https://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/objects/object_is_ancestor.html
https://youtu.be/7hVLf_0GtHI
(after the recording but before the posting Gloomy Toad Studios disappeared. Hopefully it comes back some day).
Slides and Source Code:
Github (source code and slides)
https://github.com/samspadegamedev/GML-Coding-Fundamentals/tree/master
Patreon Support
https://www.patreon.com/samspadegamedev
#GameMaker
#CodingFundamentals
#GML Object Inheritance [GameMaker Studio 2]](https://i.ytimg.com/vi/9_u15m_MlKA/mqdefault.jpg)





![Functions [GameMaker Studio 2]
A short tutorial about Functions in Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Resource Links:
https://docs2.yoyogames.com/source/_build/3_scripting/3_gml_overview/2_functions.html
Slides and Source Code:
Github (source code and slides)
https://github.com/samspadegamedev/GML-Coding-Fundamentals/tree/master
Patreon Support
https://www.patreon.com/samspadegamedev
#GameMaker
#CodingFundamentals
#GML Functions [GameMaker Studio 2]](https://i.ytimg.com/vi/AHUbyncQnUE/mqdefault.jpg)


