Code AI Swarms, Flocks & Hordes | Boids Scratch Tutorial

Channel:
Subscribers:
426,000
Published on ● Video Link: https://www.youtube.com/watch?v=Rv1tvWTtd5M



Game:
Scratches (2006)
Category:
Tutorial
Duration: 35:22
189,005 views
4,237


Learn how to code Boids AI in Scratch (originally created by Craig Reynolds in 1986 to simulate the realistic flocking behaviour of birds). But this can be used for swarms of aliens, hordes of Zombies or waves of enemy NPCs, so you too can bring amazing artificial life simulations in to your games. Follow the basic 3 steps, Separation, Cohesion, & Alignment and get 50+ boid clones interacting with each other and with your mouse - Now Scratch on Guys!

My tutorials are for all budding game & software developers using Code Blocks. Full of useful Scratch Tips and coding goodness for beginner coders to advanced Scratchers!

🐱 Scratch Studio for this tutorial - https://scratch.mit.edu/studios/31985911/comments

👀 Quick and Fun Tutorials - https://www.youtube.com/playlist?list=PLy4zsTUHwGJKByTn_qV76oTpEYGczqEb_

⭐ Channel membership with perks - https://www.youtube.com/channel/UCawsI_mlmPA7Cfld-qZhBQA/join
â¤ī¸ Scratch Addons - https://scratchaddons.com/
📹 Video Editing Software - https://techsmith.pxf.io/c/2682566/506622/5161

--------------Video Chapters--------------
0:00 Intro
1:49 Draw a Boid
3:01 Clone the Boids
4:38 Get them moving
8:10 Pointing a sprite towards a vector (speed x, speed y)
9:53 Speed Levelling
13:51 Sight – Awareness of other Boids using Lists
16:58 Separation / Avoidance
23:23 Cohesion – Herding / Sticking together as a group
26:48 Alignment – Heading in the same direction
30:05 Show Hide the UI Sliders
31:34 Avoid Mouse?
32:58 Outro







Tags:
scratch coding
scratch programming
scratch game
scratch 3
griffpatch
Help coding
scratch coding games
scratch
scratch coding tutorial
scratch coding tips
scratch coding beginners
scratch tutorial
scratch tutorials
lists scratch
scratch clones
boids
ai
tutorial
ai scratch
scratch boids
flocking ai
scratch herd
scratch life
code scratch ai
scratch sight
coding for beginners
enemy to enemy
bird sim
npc scratch
scratch flocking ai



Other Statistics

Scratches Statistics For griffpatch

griffpatch currently has 24,500,415 views spread across 87 videos for Scratches. There's over 1 day worth of watchable video for Scratches published on his channel, roughly 49.28% of the content that griffpatch has uploaded to YouTube.