
Code AI Swarms, Flocks & Hordes | Boids Scratch Tutorial
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








![[2D 게임 개발 꿀팁 시리즈] 모바일 성능과 쓰로틀링](https://img.youtube.com/vi/z0bkXem0g7o/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] 2D 게임에 3D 오브젝트 쉽게 사용하는 방법](https://img.youtube.com/vi/8ytJW1I6Agg/hqdefault.jpg)
![[2D 게임 개발 꿀팁 시리즈] 메모리 절약 스프라이트 5가지](https://img.youtube.com/vi/-cxbULpRSXE/hqdefault.jpg)

![[2D 게임 개발 꿀팁 시리즈] 2D 배칭 최적화](https://img.youtube.com/vi/zMMACezlItM/hqdefault.jpg)


![Cards: Tidy Up! [Demo Out Now]](https://img.youtube.com/vi/6DDIfmMYYFs/hqdefault.jpg)
![[2D 게임 개발 꿀팁 시리즈] 2D 배칭 조건](https://img.youtube.com/vi/5DstF95ojw0/hqdefault.jpg)



















![[2D 게임 개발 꿀팁 시리즈] 2D 배칭](https://img.youtube.com/vi/0HO_7fwC_6A/hqdefault.jpg)


































![[2D 게임 개발 꿀팁 시리즈] Runtime Sprite Atlas](https://img.youtube.com/vi/ocFwQ4sogDo/hqdefault.jpg)





































































