Uploaded December 2020 | Updated December 2026, 3 hours ago
A short tutorial that teaches you how to convert a position in an array to a position in a grid and a position in a grid to a position in an array in GameMaker Studio 2.3 (and prior versions).
Support me on Patreon!
patreon.com/samspadegamedev
Outline
0:00 Where can you use this?
0:24 Array Position to Grid Position
2:00 Grid Position to Array Position
2:47 Code Example
#GameMaker
#TinyProgrammingPatterns
#GML
A short tutorial that teaches you how to convert a position in an array to a position in a grid and a position in a grid to a position in an array in GameMaker Studio 2.3 (and prior versions).
Support me on Patreon!
patreon.com/samspadegamedev
Outline
0:00 Where can you use this?
0:24 Array Position to Grid Position
2:00 Grid Position to Array Position
2:47 Code Example
#GameMaker
#TinyProgrammingPatterns
#GML

![Custom Sorting Arrays [GameMaker Studio 2.3.1]
A short tutorial that teaches you how to sort an array of nested arrays or really anything, in any way you want - only in GameMaker Studio 2.3.1.
Support me on Patreon!
https://www.patreon.com/samspadegamedev
Outline
0:00 Where can you use this?
1:21 Three Things to Remember
1:53 Test Inventory Setup
2:10 Custom Sorting Functions
5:12 Running the Code
5:58 Anonymous Functions
#GameMaker
#TinyProgrammingPatterns
#GML Custom Sorting Arrays [GameMaker Studio 2.3.1]](https://i.ytimg.com/vi/Jb5UEmxsej8/mqdefault.jpg)


![Array Update [GameMaker Studio 2.3]
A short tutorial about the new updates to arrays in GameMaker Studio 2.3 in the Coding Fundamentals in GML Tutorial Series.
Patreon Support
https://www.patreon.com/samspadegamedev
Github Repository (Source Code)
https://github.com/samspadegamedev/YouTube-Coding-Fundamentals-in-GML-2.3
Links:
https://manual.yoyogames.com/GameMaker_Language/GML_Overview/Arrays.htm
https://manual.yoyogames.com/GameMaker_Language/GML_Reference/Variable_Functions/Variable_Functions.htm
https://www.yoyogames.com/blog/549/gamemaker-studio-2-3-new-gml-features
Outline
0:00 The 2D Array is Dead
0:46 Multi-Dimensional Arrays
2:26 Code Example
6:59 Array Functions have Changed
7:42 Summary
#GameMaker
#CodingFundamentals
#GML Array Update [GameMaker Studio 2.3]](https://i.ytimg.com/vi/K4-wc-1kc1k/mqdefault.jpg)
![My Note on Teaching Functions and Methods [GameMaker Studio 2.3]
A short video about the upcoming tutorials on functions and methods in GameMaker Studio 2.3 in the Coding Fundamentals in GML Tutorial Series.
Patreon Support
https://www.patreon.com/samspadegamedev
0:00 The Problem
0:58 My Solution
#GameMaker
#CodingFundamentals
#GML
#Functions My Note on Teaching Functions and Methods [GameMaker Studio 2.3]](https://i.ytimg.com/vi/K4zeoO_pqAs/mqdefault.jpg)
![Making a Choose Your Own Adventure Style Game in GameMaker Studio 2.3 [Part 2/2]
In this tutorial we will cover setting up the JSON data and then importing into the game and using it. Part 2 of a short Lets Make a Choose Your Own Adventure Game Style in GameMaker Studio 2.3. This is a continuation of the JSON series.
Support me on Patreon!
https://www.patreon.com/samspadegamedev
Github Repository (Source Code):
https://github.com/samspadegamedev/Choose-Your-Own-Adventure
Outline
0:00 Reviewing the JSON Data
3:14 Creating our Book Manager
4:11 Writing the main function
10:05 Coding the button
10:48 Coding the text box
11:35 Fixing my mistakes
12:08 Its working!
#GameMaker
#JSON
#GML Making a Choose Your Own Adventure Style Game in GameMaker Studio 2.3 [Part 2/2]](https://i.ytimg.com/vi/KQORXiOZqR8/mqdefault.jpg)
![An Unnecessarily Long Series About Alarms [GameMaker Studio 2.3]
An introduction to a series about alarms GameMaker Studio 2.3. In this series well cover how to make and use several different types of alarms (including one made from structs) and use alarms as a means for discussing more important ideas such as how to design and make anything in code.
Patreon Support
https://www.patreon.com/samspadegamedev
Outline
0:00 Introduction
0:18 Why Should You Watch
1:04 Four Questions
#GameMaker
#Alarms
#GML An Unnecessarily Long Series About Alarms [GameMaker Studio 2.3]](https://i.ytimg.com/vi/KTMwxBF57do/mqdefault.jpg)
![Call Stack [GameMaker Studio 2]
A short tutorial on what the call stack is and why it is important in GameMaker. Part of the Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Resource Links:
https://en.wikipedia.org/wiki/Call_stack
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 Call Stack [GameMaker Studio 2]](https://i.ytimg.com/vi/L0di0Rf6xis/mqdefault.jpg)
![Recursion Part 2 [GameMaker Studio 2]
A short tutorial on Recursion in the Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Patreon Support
https://www.patreon.com/samspadegamedev
Resource Links:
https://www.youtube.com/watch?v=Mv9NEXX1VHc
https://www.youtube.com/watch?v=jPsZwrV9ld0
https://en.wikipedia.org/wiki/Recursion_(computer_science)
Slides and Source Code:
Github (source code and slides)
https://github.com/samspadegamedev/GML-Coding-Fundamentals/tree/master
#GameMaker
#CodingFundamentals
#GML Recursion Part 2 [GameMaker Studio 2]](https://i.ytimg.com/vi/L7RJ4xstJLg/mqdefault.jpg)
![Maps [GameMaker Studio 2]
A short tutorial on what ds_maps are and how to use them in GameMaker. Part of the Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Resource Links:
https://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/data_structures/index.html
https://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/data_structures/ds%20priority%20queues/index.html
https://en.wikipedia.org/wiki/Priority_queue
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 Maps [GameMaker Studio 2]](https://i.ytimg.com/vi/LDR0v7iCq3o/mqdefault.jpg)