Birds flying together
Fish reacting to the player
Magic particles dancing
The possibilities are endless with our new easy-to-follow coding tutorial, so juice up your game and learn Boids flocking algorithm in GML.
You can get the project from GitHub with this link: https://github.com/DavidStrachan/GM_P...
Download GameMaker for free and bring your creativity to life. https://opr.as/DownloadGM-YT
GameMaker is fast to create in and free for your friends can play when
exporting to OperaGX.games.
Thanks to David Strachan for creating the tutorial. Find him at:
/ davesinhispants
https://mastodon.gamedev.place/@MrDave
00:00 What are you going to make?
00:13 What is Boids Flocking Simulator?
00:48 Alignment, Cohesion, Separation
01:19 Making the project
04:44 Code structure
05:50 Code to finding friends
08:48 Code to match the direction of friends
14:14 Code to go to the middle of friends
16:56 Code to stay on screen
20:29 Code to repel Boids or enemies
24:01 Refactor to use the single rotate function
26:54 Spawn on mouse
27:38 First working example
28:48 Enhancing the project
41:06 Final example
43:18 Outro