Uploaded December 2021 | Updated December 2026, 3 hours ago
Learn how to code the align, cohesion, and separation steering behaviors and combine them to create the flocking behavior. This tutorial builds off of the previous videos on Vectors and Steering Behaviors in GameMaker Studio 2 series.
Steering behaviors were invented by Craig Reynolds and you can read his original paper for free here: researchgate.net/publication/2495826_Steering_Behaviors_For_Autonomous_Characters
Patreon Support
patreon.com/samspadegamedev
Source Code on Github
github.com/samspadegamedev/YouTube-Vectors-and-Steering-Behaviors
Playlist:
youtube.com/playlist?list=PLwgH1hDD0q1Hf7A0AfnRT2W6cfHOdzm_g
Outline
0:00 What is Flocking
0:18 Align Concept
0:40 Align Code
1:45 Cohesion Concept
2:16 Cohesion Code
3:03 Separation Conception
3:53 Separation Code
6:02 Applying a Distance Check
7:52 Flocking can cause Lag
#GameMaker
#Vectors
#SteeringBehaviors
#Flocking
#GML
Learn how to code the align, cohesion, and separation steering behaviors and combine them to create the flocking behavior. This tutorial builds off of the previous videos on Vectors and Steering Behaviors in GameMaker Studio 2 series.
Steering behaviors were invented by Craig Reynolds and you can read his original paper for free here: researchgate.net/publication/2495826_Steering_Behaviors_For_Autonomous_Characters
Patreon Support
patreon.com/samspadegamedev
Source Code on Github
github.com/samspadegamedev/YouTube-Vectors-and-Steering-Behaviors
Playlist:
youtube.com/playlist?list=PLwgH1hDD0q1Hf7A0AfnRT2W6cfHOdzm_g
Outline
0:00 What is Flocking
0:18 Align Concept
0:40 Align Code
1:45 Cohesion Concept
2:16 Cohesion Code
3:03 Separation Conception
3:53 Separation Code
6:02 Applying a Distance Check
7:52 Flocking can cause Lag
#GameMaker
#Vectors
#SteeringBehaviors
#Flocking
#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)


