Uploaded May 2020 | Updated December 2026, 3 hours ago
A short tutorial in the Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Slides and Source Code:
Github (source code and slides)
github.com/samspadegamedev/GML-Coding-Fundamentals/tree/master
Patreon Support
patreon.com/samspadegamedev
#GameMaker
#CodingFundamentals
#GML
A short tutorial in the Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Slides and Source Code:
Github (source code and slides)
github.com/samspadegamedev/GML-Coding-Fundamentals/tree/master
Patreon Support
patreon.com/samspadegamedev
#GameMaker
#CodingFundamentals
#GML
![While and Do...Until [GameMaker Studio 2]
A short tutorial about While and Do...Until Loops in Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Resource Links:
https://docs2.yoyogames.com/source/_build/3_scripting/3_gml_overview/14_language_features.html
https://en.wikipedia.org/wiki/While_loop
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 While and Do...Until [GameMaker Studio 2]](https://i.ytimg.com/vi/cmeY8S-vlV8/mqdefault.jpg)
![With Statement [GameMaker Studio 2]
A short tutorial on the with statement in the Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Resource Links:
https://docs2.yoyogames.com/source/_build/3_scripting/3_gml_overview/14_language_features.html
https://forum.yoyogames.com/index.php?threads/with-block-recipe-cards.25326/
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 With Statement [GameMaker Studio 2]](https://i.ytimg.com/vi/dXUWcBCWFxU/mqdefault.jpg)

![Built-in Alarms [GameMaker Studio 2.3]
A tutorial about the built-in alarms in GameMaker Studio 2.3.
Patreon Support
https://www.patreon.com/samspadegamedev
Outline
0:00 Introduction
0:16 Code
2:26 Diagram
3:17 Pros and Cons
#GameMaker
#Alarms
#GML Built-in Alarms [GameMaker Studio 2.3]](https://i.ytimg.com/vi/eb99uZ_09OE/mqdefault.jpg)



![[incomplete in 2.3.1] Exporting JSON Data
A short series on what JSON is and how to write, import, and export it in GameMaker Studio 2. Please note that while all of the information in this tutorial is still accurate and will work, it is now incomplete as of GameMaker Studio version 2.3.1 since we can now import JSON data as structs and arrays. You can view the updated tutorial here: https://youtu.be/Jz-qwgQvFx0.
Support me on Patreon!
https://www.patreon.com/samspadegamedev
Links:
https://manual.yoyogames.com/GameMaker_Language/GML_Reference/File_Handling/Encoding_And_Hashing/json_encode.htm
https://github.com/samspadegamedev/YouTube-JSON-and-GameMaker-Studio-2
https://marketplace.yoyogames.com/assets/8066/json-toolkit
Outline
0:00 You need to design your GameMaker Data
0:40 Setting up your data
1:13 Valid Data Types
2:28 Marking Maps and Lists
3:03 Steps to Export
3:27 Overview of Custom Scripts
5:27 Overview of the Code
8:10 Running the Code
10:10 Inspecting the String
11:20 Reimporting The Data
12:28 How to Follow Along
13:05 Summary
#GameMaker
#JSON
#GML [incomplete in 2.3.1] Exporting JSON Data](https://i.ytimg.com/vi/ghEkkNnUiAg/mqdefault.jpg)
![Static Variables [GameMaker Studio 2.3]
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
https://www.patreon.com/samspadegamedev
Links:
https://manual.yoyogames.com/GameMaker_Language/GML_Overview/Method_Variables.htm
Github Source Code Repository
https://github.com/samspadegamedev/YouTube-Coding-Fundamentals-in-GML-2.3
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 Static Variables [GameMaker Studio 2.3]](https://i.ytimg.com/vi/h3dTA-j1EFk/mqdefault.jpg)
![[incomplete in 2.3.1] Importing JSON Data
A short series on what JSON is and how to write, import, and export it in GameMaker Studio 2. Please note that while all of the information in this tutorial is still accurate and will work, it is now incomplete as of GameMaker Studio version 2.3.1 since we can now import JSON data as structs and arrays.
UPDATED VIDEO: https://youtu.be/a7i8gdYe6DE
Support me on Patreon!
https://www.patreon.com/samspadegamedev
Links:
https://manual.yoyogames.com/GameMaker_Language/GML_Reference/File_Handling/Encoding_And_Hashing/json_decode.htm
https://github.com/samspadegamedev/YouTube-JSON-and-GameMaker-Studio-2
https://marketplace.yoyogames.com/assets/8066/json-toolkit
Outline
0:00 You need to Translate JSON Files
0:33 What does JSON Become?
1:59 Steps to Import
2:40 Project Overview
2:54 GameMakers File System
4:41 Review the JSON File
5:06 Using the Built in Functions
7:15 Using a Custom Script
10:38 Destroying Your Data Structures
11:18 How to Follow Along
11:35 Summary
#GameMaker
#JSON
#GML [incomplete in 2.3.1] Importing JSON Data](https://i.ytimg.com/vi/ifctYVIFqqA/mqdefault.jpg)
