Uploaded December 2020 | Updated December 2026, 3 hours ago
In 2.3.1 we can now import JSON data as structs and arrays in GameMaker! Here's how. IMPORTANT NOTE: in 2.3.2 null values are now imported as a null pointer instead of simply being deleted.
Support me on Patreon!
patreon.com/samspadegamedev
Outline
0:00 JSON Data as Structs and Arrays
0:29 Translating JSON Data
0:56 What does the data become?
1:38 No More Memory Leaks!
1:59 Steps to Import
2:54 Code Example
4:30 Basic Importing (JSON Data with no line breaks)
5:29 Using a Custom Function to Import
7:02 An Important difference between parse and decode
8:49 How to Follow Along
9:08 Summary
Links:
manual.yoyogames.com/GameMaker_Language/GML_Reference/File_Handling/Encoding_And_Hashing/json_parse.htm
manual.yoyogames.com/GameMaker_Language/GML_Reference/File_Handling/Encoding_And_Hashing/json_decode.htm
#GameMaker
#JSON
#GML
In 2.3.1 we can now import JSON data as structs and arrays in GameMaker! Here's how. IMPORTANT NOTE: in 2.3.2 null values are now imported as a null pointer instead of simply being deleted.
Support me on Patreon!
patreon.com/samspadegamedev
Outline
0:00 JSON Data as Structs and Arrays
0:29 Translating JSON Data
0:56 What does the data become?
1:38 No More Memory Leaks!
1:59 Steps to Import
2:54 Code Example
4:30 Basic Importing (JSON Data with no line breaks)
5:29 Using a Custom Function to Import
7:02 An Important difference between parse and decode
8:49 How to Follow Along
9:08 Summary
Links:
manual.yoyogames.com/GameMaker_Language/GML_Reference/File_Handling/Encoding_And_Hashing/json_parse.htm
manual.yoyogames.com/GameMaker_Language/GML_Reference/File_Handling/Encoding_And_Hashing/json_decode.htm
#GameMaker
#JSON
#GML
![[incomplete in 2.3] Data Structures Introduction Part 1 [GameMaker Studio 2]
Part 1 of the introduction to data structures in the Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Resource Links:
https://en.wikipedia.org/wiki/Data_structure
https://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/data_structures/index.html
https://docs2.yoyogames.com/source/_build/3_scripting/3_gml_overview/13_accessors.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 [incomplete in 2.3] Data Structures Introduction Part 1 [GameMaker Studio 2]](https://i.ytimg.com/vi/alCnQtxeF_o/mqdefault.jpg)
![Event Order [GameMaker Studio 2]
A short tutorial on event order in the Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Resource Links:
https://docs2.yoyogames.com/source/_build/2_interface/1_editors/events/index.html
https://docs2.yoyogames.com/source/_build/2_interface/1_editors/events/draw_events.html
https://marketplace.yoyogames.com/assets/5360/fc-s-depth-system
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 Event Order [GameMaker Studio 2]](https://i.ytimg.com/vi/atYzhQ26ZyA/mqdefault.jpg)

![For Loops Basics [GameMaker Studio 2]
A short tutorial about For 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/For_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 For Loops Basics [GameMaker Studio 2]](https://i.ytimg.com/vi/bBan8_-y2s4/mqdefault.jpg)
![You are the Programmer [GameMaker Studio 2]
A short tutorial in the Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
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 You are the Programmer [GameMaker Studio 2]](https://i.ytimg.com/vi/bZ-bcf7UZ14/mqdefault.jpg)
![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)

