Uploaded November 2020 | Updated December 2026, 3 hours ago
A short tutorial that teaches you how to write loops that either skip certain elements contained within a loop or only act upon certain elements within the loop in GameMaker Studio 2.3 (and prior versions).
Support me on Patreon!
patreon.com/samspadegamedev
Outline
0:00 Where can you use this?
0:33 A loop that skips certain elements
0:52 A loop that only acts on certain elements
1:11 Code Example
#GameMaker
#TinyProgrammingPatterns
#GML
A short tutorial that teaches you how to write loops that either skip certain elements contained within a loop or only act upon certain elements within the loop in GameMaker Studio 2.3 (and prior versions).
Support me on Patreon!
patreon.com/samspadegamedev
Outline
0:00 Where can you use this?
0:33 A loop that skips certain elements
0:52 A loop that only acts on certain elements
1:11 Code Example
#GameMaker
#TinyProgrammingPatterns
#GML




![Multitouch Basics [GameMaker Studio 2.3.1]
Learn how to deal with multiple touches and code your own multitouch system in GameMaker Studio. The first two videos will work for most versions of GameMaker, but the code in the final videos will require GameMaker Studio 2.3.1.
Support me on Patreon!
https://www.patreon.com/samspadegamedev
Outline
0:00 Series Outline
0:25 User Input Generally
1:03 Built-in Events
1:31 Built-in Functions
1:56 What Makes Multitouch Tricky?
3:05 Other Key Differences
3:56 Order of Touches Example
4:41 Summary
Photo by Markus Spiske on Unsplash
#GameMaker
#Multitouch
#GML Multitouch Basics [GameMaker Studio 2.3.1]](https://i.ytimg.com/vi/PCFmcZoifAM/mqdefault.jpg)

![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)



