Uploaded January 2021 | Updated December 2026, 3 hours ago
In this tutorial we'll use Cellular Automata to create procedurally generated maps in GameMaker Studio 2.3. This tutorial is based on Refresher Towel's written tutorial - link below.
Support me on Patreon!
patreon.com/samspadegamedev
Source Code on Github
github.com/samspadegamedev/YouTube-Procedural-Generation-and-Cellular-Automata
Refresher Towel's Tutorial: https://refreshertowel.games/2021/01/19/procedural-generation-in-gms-3-cellular-automata/
Spaceslingers: store.steampowered.com/app/1369800/Spaceslingers
Outline
0:00 What's so Great About Cellular Automata?
1:00 Defining Cellular Automata
2:24 What do we need to do?
2:52 Project Overview
3:34 Initializing the CA Map
5:37 Iterating over Generations
6:58 Counting Neighbors
9:55 Applying the Rules
10:22 Putting it All Together
12:21 One Last Cool Thing
Tutorial on For Loops: forum.yoyogames.com/index.php?threads/gml-joseki-series-for-block-recipe-cards.82306
CA Examples:
meltingasphalt.com/interactive/outbreak
youtube.com/watch?v=VLZjd_Y1gJ8
#GameMaker
#Cellular Automata
#GML
In this tutorial we'll use Cellular Automata to create procedurally generated maps in GameMaker Studio 2.3. This tutorial is based on Refresher Towel's written tutorial - link below.
Support me on Patreon!
patreon.com/samspadegamedev
Source Code on Github
github.com/samspadegamedev/YouTube-Procedural-Generation-and-Cellular-Automata
Refresher Towel's Tutorial: https://refreshertowel.games/2021/01/19/procedural-generation-in-gms-3-cellular-automata/
Spaceslingers: store.steampowered.com/app/1369800/Spaceslingers
Outline
0:00 What's so Great About Cellular Automata?
1:00 Defining Cellular Automata
2:24 What do we need to do?
2:52 Project Overview
3:34 Initializing the CA Map
5:37 Iterating over Generations
6:58 Counting Neighbors
9:55 Applying the Rules
10:22 Putting it All Together
12:21 One Last Cool Thing
Tutorial on For Loops: forum.yoyogames.com/index.php?threads/gml-joseki-series-for-block-recipe-cards.82306
CA Examples:
meltingasphalt.com/interactive/outbreak
youtube.com/watch?v=VLZjd_Y1gJ8
#GameMaker
#Cellular Automata
#GML
![Garbage Collection [GameMaker Studio 2.3.1]
A short video about the new Garbage Collector in GameMaker Studio 2.3.1 as part of the Coding Fundamentals in GML Tutorial Series.
Patreon Support
https://www.patreon.com/samspadegamedev
Github Repository
https://github.com/samspadegamedev/YouTube-Coding-Fundamentals-in-GML-2.3
Links:
https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)
https://youtu.be/2JasKMJonaQ
https://manual.yoyogames.com/GameMaker_Language/GML_Reference/Garbage_Collection/Garbage_Collection.htm
https://forum.yoyogames.com/index.php?threads/garbage-collector-is-crashing-with-null-pointer-dereference-on-physics-object.79508/#post-472667
Outline
0:00 Memory Management!
1:51 Why you shouldnt mess with GMs Garbage Collector
2:24 GC Functions
2:57 So what does the GC collect?
4:00 Summary
4:18 Additional Resources (actually read these)
#GameMaker
#CodingFundamentals
#GML Garbage Collection [GameMaker Studio 2.3.1]](https://i.ytimg.com/vi/PLvNYdzO2yk/mqdefault.jpg)




![Miscellaneous Function Stuff [GameMaker Studio 2.3]
A short video about miscellaneous functions stuff for GameMaker Studio 2.3 in the Coding Fundamentals in GML Tutorial Series.
Patreon Support
https://www.patreon.com/samspadegamedev
Github Repository
https://github.com/samspadegamedev/YouTube-Coding-Fundamentals-in-GML-2.3
Links:
https://manual.yoyogames.com/GameMaker_Language/GML_Overview/Variables/Builtin_Global_Variables/argument.htm
https://manual.yoyogames.com/The_Asset_Editors/Code_Editor_Properties/JSDoc_Script_Comments.htm
https://manual.yoyogames.com/GameMaker_Language/GML_Reference/Asset_Management/Scripts/Scripts.htm
Outline
0:00 Introduction
0:22 Return Value
1:11 Named Arguments
2:54 Argument Array
4:31 JSDoc Script Comments
7:17 Functions for Script Functions
8:09 Summary
#GameMaker
#CodingFundamentals
#GML
#Functions Miscellaneous Function Stuff [GameMaker Studio 2.3]](https://i.ytimg.com/vi/QObmcRW6m94/mqdefault.jpg)
![Error Messages [GameMaker Studio 2]
A short video on Error Messages in GML tutorial series using GameMaker Studio 2.
Resource Links:
https://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/debugging/index.html
https://docs2.yoyogames.com/source/_build/3_scripting/4_gml_reference/debugging/show_error.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 Error Messages [GameMaker Studio 2]](https://i.ytimg.com/vi/Qj9oMt0sIPM/mqdefault.jpg)
![Boolean Logic [GameMaker Studio 2]
A short tutorial about Boolean Logic in Coding Fundamentals in GML tutorial series using GameMaker Studio 2.
Resource Links:
https://docs2.yoyogames.com/source/_build/3_scripting/3_gml_overview/12_expressions.html
https://en.wikipedia.org/wiki/Boolean_algebra
https://forum.yoyogames.com/index.php?threads/how-not-to-use-and.12871/
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
Outline
0:00 What Is Boolean Logic?
0:54 Boolean Operators
3:05 Boolean Equivalency
6:28 Code Examples
8:33 Properly Using Multiple Operators
9:27 Summary
#GameMaker
#CodingFundamentals
#GML Boolean Logic [GameMaker Studio 2]](https://i.ytimg.com/vi/QmrOYwN10bQ/mqdefault.jpg)


![Updating the Coding Fundamentals Series [GameMaker Studio 2.3]
Updating the Coding Fundamentals series using GameMaker Studio 2.3.
Resource Links:
https://docs2.yoyogames.com/source/_build/3_scripting/3_gml_overview/10_arrays.html
Slides and Source Code:
https://github.com/samspadegamedev/YouTube-Coding-Fundamentals-in-GML-2.3
https://drive.google.com/drive/folders/1kixOSot06fLOM2TokcO8vuWKig6qmyLd
https://forum.yoyogames.com/index.php?threads/coding-fundamentals-in-gml-tutorial-series.70417/
Patreon Support
https://www.patreon.com/samspadegamedev
Outline
0:00 GML Has Changed!
1:19 Patreon Support and Other Resources
#GameMaker
#CodingFundamentals
#GML Updating the Coding Fundamentals Series [GameMaker Studio 2.3]](https://i.ytimg.com/vi/R29MDeVwkaE/mqdefault.jpg)