Code AI Swarms, Flocks & Hordes | Boids Scratch Tutorial

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 1 тис.

  • @DanielHCassidy
    @DanielHCassidy 2 роки тому +196

    Are you settling them to a random colour as they clone or changing colour by x as they clone. Or will they detect colour of boids in range and shift to that colour

    • @griffpatch
      @griffpatch  2 роки тому +63

      Ah, in my new version I change their colour when they move off screen and appear on the opposite side. But the colour I set is based off timer * 10 (or something) + an offset. The offset is 0, 50, 100 or 150 depending on which edge it goes off. I also set the brightness to a random number at the start + - 10 or something

    • @vistaman1
      @vistaman1 2 роки тому +21

      how did you comment 19 hours ago when he posted it 16 minutes ago

    • @UltronZX
      @UltronZX 2 роки тому +4

      @@vistaman1 wait thats true

    • @nilzethalves6507
      @nilzethalves6507 2 роки тому +19

      @@UltronZX i'ts bcuz the video was first for members

    • @_KDP
      @_KDP 2 роки тому +5

      @@nilzethalves6507 yep

  • @pastapastel910
    @pastapastel910 2 роки тому +132

    When he said "it's scratchin' time!" and scratched all over the screen, it left 5 tears on my right eye. Truly one of the game developing moments of all time

    • @sdbadik
      @sdbadik 2 роки тому +7

      Best comment i've seen under any Griffpatch video

    • @El_Asado
      @El_Asado Рік тому +3

      Personally, I liked the part where he says "it's thing of thing blockin' time!" more.

    • @kasonmakesstuffs
      @kasonmakesstuffs Рік тому +1

      @@El_Asado nah its when he said "Its Make a new variable'in time!"

    • @progCan
      @progCan Рік тому +1

      @Ian Gustafson lmao

    • @jaxonmays
      @jaxonmays Рік тому +2

      I see these comments, EVERYWHERE I GO, AND I AM LOSING MY MIND

  • @Enderia2
    @Enderia2 2 роки тому +18

    The fact that griffpatch is basically the only scratch tutorial guy (thats useful anyway) means Scratchy is pretty much canon at this point

  • @Titouan_Jaussan
    @Titouan_Jaussan Рік тому +8

    I still can't believe how easily Griffpatch can explain complex concepts and make us want to program and improve our games even more!
    Continue Griffpatch🥳

  • @Resseguie
    @Resseguie 2 роки тому +85

    Boids were always fascinating to me in grad school. So simple, yet such complex (and mesmerizing) group behavior.

    • @griffpatch
      @griffpatch  2 роки тому +16

      Yes indeed :D - And a prime subject for learning some optimisations skills going forward if there's interest!

    • @Resseguie
      @Resseguie 2 роки тому +5

      @@griffpatch I particularly enjoyed studying emergent behavior and cooperative tasks in these types of systems... i.e. tweaking the simple rules to cause the individual agents to solve some particular task such as building a bridge like ants.

    • @DUMB_PERSON_NEAR_ME
      @DUMB_PERSON_NEAR_ME Рік тому +1

      @pixel Smiler official good idea

    • @electro9442
      @electro9442 Рік тому

      69 likes

    • @MilanCuevas-k5x
      @MilanCuevas-k5x 5 місяців тому

      Do you have
      New x New y
      No

  • @jameswoodcock485
    @jameswoodcock485 2 роки тому +75

    After roughly 10 minutes of listening to this tutorial at 2x speed, the word 'boid' / 'boids' is said a grand total of 145 times! That's a lot of boids!

    • @griffpatch
      @griffpatch  2 роки тому +29

      Amazing

    • @1080GBA_SC
      @1080GBA_SC 2 роки тому +8

      imagine counting for 10 minutes then realizing someone counted it already (its a joke)

    • @imjustheretocomment492
      @imjustheretocomment492 2 роки тому +2

      @@1080GBA_SC lol

    • @redbirb
      @redbirb 2 роки тому +5

      you didn't have to count, you could've thrown an AI at it! AIs LOVE counting and definitely won't mistake any words other than boid/boids as boid/boids! (The AI probably will mess up xD)

    • @1080GBA_SC
      @1080GBA_SC 2 роки тому +3

      @@redbirb yes but you need to know how to code it

  • @gaker19sc
    @gaker19sc 2 роки тому +55

    I once saw this in an episode of "Coding Adventure", I'm so excited to see this in Scratch!

    • @redbirb
      @redbirb 2 роки тому +3

      TBH I wanted someone to make this into a scratch tutorial, and naturally, Griffpatch rose to the occasion

  • @INotSillyTV
    @INotSillyTV 2 роки тому +6

    The fact that Griffpatch pretty much played the whole outro music is awesome! Just some Epic Music! I love your tutorials Griffpatch! I’m looking forward to finally make an RPG from your tutorials!

  • @FederationOG
    @FederationOG 2 роки тому +8

    It's incredibly outstanding on how he's used his talents for nine years straight just to help us. What a good guy !😊

  • @Awes0meBadger23
    @Awes0meBadger23 5 місяців тому +2

    According to my (unreliable) counting, you said the word boid a grand total of 149 times in this entire 35 minute video! Thanks for the fun dare!

  • @lestylo8428
    @lestylo8428 2 роки тому +12

    This is insane. I'll try to implement it with pygame and python. Thanks for such a interesting lesson ☺

  • @goomba_wave
    @goomba_wave Місяць тому +2

    I love watching your videos! I’ve been a fan for 5 years!

  • @LilKaijuPH
    @LilKaijuPH Рік тому +7

    I've never used any of your scratch tutorials before because they seemed very hard to do, but this one actually was useful, thanks griffpatch!
    edit: help the boids are on the top of the screen and not on the middle like what you made

  • @Phillip_Duck
    @Phillip_Duck 2 роки тому +5

    Wow! Your direction trick is amazing!
    A while ago I used trig to point in the direction of movement and it was such a pain, but I got there in the end.

  • @penwozhere
    @penwozhere Рік тому +14

    oooh im totally gonna use this to add leeches to a game!
    Edit: give each object a different "weight" where the food (to distract them) has the most, the player in the middle, and the critters themselves the least. Maybe even negative values for stuff the are repulsed by... Tons of cool stuff to do with this project!

  • @Richard_Nixon-mr6rq
    @Richard_Nixon-mr6rq 2 роки тому +1

    That was a lot of very clever math.
    I personally found it genius the position difference to actual distance to make a straightforward math equation to calculate how tight the turns need to be.

  • @bruhder3447
    @bruhder3447 2 роки тому +4

    I was searching for this weeks ago but couldn't find one that's easy to understand
    I even tried making my own but still failed
    And I just gave up
    Definitely didn't expect a tutorial for this
    But I'm glad you made one ❤️

  • @pearpear43
    @pearpear43 2 роки тому

    I can't comprehend the amount of creativity and problem solving skills you have...but I still love it!

  • @virtualworldwithme4803
    @virtualworldwithme4803 2 роки тому +4

    Griffpatch, you are genies!😄 Thank you for this wonderful tutorial!

  • @dog_2
    @dog_2 Рік тому +1

    This helped me in one of my games i used the direction trick thank you it helped me after 2 hours of raging not being able to get the directions to be able to work this helped me for my game!

  • @orangeisntavailable
    @orangeisntavailable 2 роки тому +17

    19:54 "More variables! I need more variables!"
    -Griffpatch (the variable master)

  • @BD-tq8xg
    @BD-tq8xg 9 місяців тому +1

    Dude your videos and projects are SO GODDAMN AMAZING!! You deserve more subscribers!

  • @scienceboy5883
    @scienceboy5883 2 роки тому +7

    Congratulations griffpatch 🥳🎉🎊 You just hit 400,000 followers! That's not a small number! We all hope that you do your best and keep growing and keep boosting the number. We believe that you can break the limits of scratch. All the best!
    Sincere regards,
    Dipusen

    • @-tylerrodgers-
      @-tylerrodgers- 2 роки тому +1

      **makes a 5635638456456d game in scratch** *It's really simple!*

    • @dog_2
      @dog_2 2 роки тому

      @@-tylerrodgers- wth

  • @villeolof2000
    @villeolof2000 2 роки тому

    I love the "well, hurra!" In the begging!! It makes me so exciting!!

  • @noontimedreamer
    @noontimedreamer 2 роки тому +7

    I counted around 101 mentions of boid. But I also lost count somewhere around cohesion...
    Ah boids! I had a not so great game jam submission where you would have minions that acted like boids, and you could direct them towards enemies. That was around when Sebastian Lague posted their own video on Boids. Each step just makes you more excited for the next!

  • @Paul-ch1eo
    @Paul-ch1eo 2 роки тому +1

    I had a great time coding while listening to you explain how it works. Thank you for your hard work.
    Keep it up!

  • @dazcarrr
    @dazcarrr 2 роки тому +3

    if you use the script at 9:31 but instead of randomly positioning the boids, you set them all to the centre, you get a really cool pattern

    • @griffpatch
      @griffpatch  2 роки тому +1

      That's interesting :) - What pattern do you get?

    • @dazcarrr
      @dazcarrr 2 роки тому +2

      @@griffpatch the boids basically explode outwards, and then start coming together in various groups until they all rejoin in the centre.

  • @nwcrazy1509
    @nwcrazy1509 2 роки тому

    I have just started back on scratch again after a break for my mental health and your videos have made my day

  • @FeniteFr
    @FeniteFr 2 роки тому +3

    Omg this is amazing! Thanks Griffpatch 💪 You always surprise ne and teach me new things 🌟

  • @jameswoodcock485
    @jameswoodcock485 2 роки тому

    Out of all the tutorials, I would've never expected boids!

  • @funut2541
    @funut2541 2 роки тому +13

    Always love boids. Looks beautiful with that trail version. Are you just stamping the previous frame with a transparent fill?

    • @griffpatch
      @griffpatch  2 роки тому +4

      Yes that's right

    • @liamisakid
      @liamisakid 2 роки тому

      @@griffpatch Funut also made a Boids Project :)

    • @schnagli
      @schnagli 2 роки тому +2

      Hi Funut! Are you planning To do UA-cam-videos again?

  • @alberthwang2900
    @alberthwang2900 8 місяців тому

    A couple of tips.
    1. If you add a "set color effect to boid count *5" line to the bottom of the Calculate subfunction, the boids will change color based on the number of other boids in the flock.
    2. If you want a more visible "avoid mouse pointer" function, multiply the range by 1.5 and the negative separation by 10: the boids will then rapidly flee from the mouse pointer, like fish fleeing a disturbance at the surface of the water.
    3. By using separation rather than negative separation, you can also get the boids to swarm towards the mouse pointer, rather than away from it.

  • @connorclub6244
    @connorclub6244 2 роки тому +4

    I just got this working in python (unfortunately couldn't figure out angle to a coordinate in order to change the direction of boids, i'll look into that soon), and it was so satisfying when i first saw them align to each other!

    • @connorclub6244
      @connorclub6244 2 роки тому +2

      Update: I went to the scratch wiki for "Finding Direction with Velocity" which was actually what I needed. It seems to be a bad approximation (seems to be always 0 or -90 for some reason) but its not bad.

    • @connorclub6244
      @connorclub6244 Рік тому

      BETTER UPDATE: It turns out I was being a goddamn idiot and already had the CORRECT code in there, I JUST FORGOT TO USE IT

    • @scotlzn34
      @scotlzn34 Рік тому

      For the direction you can use math.atan2(-speed-y, speed_x) to get the angle in radians of the boid

  • @markgamez1
    @markgamez1 Рік тому

    I recreated your exact setup at 0:26 and if you want to achieve maximum overdrive you just have to use these settings:
    target speed 5
    resolve 0.01
    range 150
    separation 0.2
    cohesion 0.1
    alignment 0.01
    Then turn on turbo mode for a couple seconds

  • @247BCA
    @247BCA 2 роки тому +3

    Thanks griffpatch for this tutorial! You always make my day better

  • @itsduckietime4473
    @itsduckietime4473 2 роки тому +1

    I’ve become experienced enough to make possibly the most popular Tower Defense games on Scratch, but watching your tutorials helps me learn about the “hidden” features of itself. Along with the value of lists in high numbers of clones, it’s fun to see what you can make.

  • @extrem780
    @extrem780 2 роки тому +3

    Hi griffpatch, I have been making a capture the flag like game and this tutorial could be great for the AI! Two questions though:
    1: How do I make them go TOWARDS the other team's members?
    2: How could I adapt this tutorial to make it scroll on the X (The game only scrolls on the X)

    • @minecraftjack6439
      @minecraftjack6439 2 роки тому +1

      2. Replace the x position reporter blocks with a variable for the x. Have another variable for x scroll. Then in the go to position block, use x+the scroll x instead of x positon+speed x

    • @SIG7Pro
      @SIG7Pro 2 роки тому

      For question 2, probably just don’t do anything for the y values

  • @christelle5782
    @christelle5782 2 роки тому

    YES !
    A VIDEO !
    Love you're videos ! Continue like that !

  • @redbirb
    @redbirb 2 роки тому +4

    Hey Griffpatch, I would like to ask you if you could do something on different types of procedural terrain generation like wavefunction collapse and perlin noise. I find procedural generation very interesting, and I think your viewers would love to see it, and we could end up with some really cool games! Thanks for reading! :D

  • @LauraPerez-wp4xi
    @LauraPerez-wp4xi 2 роки тому

    Just appreciate how great Griffpatch's voice sounds!

  • @amandadonnell4826
    @amandadonnell4826 Рік тому +6

    GUYS WHO SAW THE HIDDEN LEMON🎉

  • @vincleaybar
    @vincleaybar Рік тому

    As a Scratch lover, this is really satisfying.

  • @davidemalandrone2433
    @davidemalandrone2433 2 роки тому +1

    Thank you soooooo much for this tutorial, finally i know how to check for nearby clones! You are the best :D

  • @ahmetsarper8024
    @ahmetsarper8024 2 роки тому

    omg ive been waiting for something like that for ages
    thank you

  • @Blue-gy2it
    @Blue-gy2it 2 роки тому +2

    I’m not gonna do it, but this is honestly amazing and satisfying. (The fact that two giant circles mixed to make another huge circle)

    • @griffpatch
      @griffpatch  2 роки тому +1

      I loved that too lol

    • @Blue-gy2it
      @Blue-gy2it 2 роки тому +1

      @@griffpatch WAIT *WHA-*

  • @AquaranSocialistRepublic
    @AquaranSocialistRepublic 2 роки тому

    This was like the best thing to watch after I got a commenter trying to make me stop using Scratch to draw scenery for my animation videos. Idk like some zombie game is what comes to mind for me (duh)

  • @langcao3544
    @langcao3544 8 місяців тому

    This is so useful! Not just for scratch but for others! I made a python boid that has the same effect and it is amazing

  • @Iminsanealr
    @Iminsanealr 2 роки тому

    This is probably your most satisfying tutorial lol

  • @myithspa25
    @myithspa25 2 роки тому +1

    I recently saw Sebastian Lague's video on this, and wanted to recreate it in Scratch! Thanks!

  • @Mr_nvisible
    @Mr_nvisible 2 роки тому

    i didnt do the code for hiding and showing sliders. instead,I coded an options button. thanks for this tutorial ,I loved it!!!!

  • @DanielHCassidy
    @DanielHCassidy 2 роки тому +1

    Oh man this was worth the wait just for the hiding and showing variable script

  • @ThatBuckskin-Frank
    @ThatBuckskin-Frank 2 роки тому +2

    Underrated video, needs more likes and shares

    • @griffpatch
      @griffpatch  2 роки тому +1

      YES PLEASE!!!! Everyone Like and Share my video :D

    • @ThatBuckskin-Frank
      @ThatBuckskin-Frank 2 роки тому

      @@griffpatch I already have 😎👍

  • @markgamez1
    @markgamez1 2 роки тому

    Congrats on 400,000 scratch followers!

  • @u.n.k.x.n
    @u.n.k.x.n 2 роки тому

    Wha- I-… this is incredible! Impressive as always

  • @Dr-Phoenix
    @Dr-Phoenix 2 роки тому

    I love that editing style!

  • @MaxwellCatAlphonk
    @MaxwellCatAlphonk 2 роки тому +1

    The way you popped eyes on the boids was cute not gonna lie

  • @deEscapion
    @deEscapion 2 роки тому

    Finally a new project! Way to go!

  • @sjtcx._mc
    @sjtcx._mc Рік тому

    21:02 the most hardest math moment I've ever seen in griffpatch tutors

  • @freddyfazbear3195
    @freddyfazbear3195 2 роки тому

    It is lucky that your'e a scratcher, without you... WE WOULDN'T GET EXCELLENT PROJECTS LIKE THIS!!!

  • @not_neptune4771
    @not_neptune4771 2 роки тому +1

    congrats to 400k on scratch griffpatch!

  • @CoolRubiksCube
    @CoolRubiksCube 2 роки тому +1

    I always like stuff like this! I'm ready for another great griffpatch video!

    • @griffpatch
      @griffpatch  2 роки тому +1

      Me too... I love simulations and particles, and movement :)

    • @sumynona.01
      @sumynona.01 2 роки тому

      @@griffpatch make a 3d version of conways game of life

  • @greysonjoaquinrivera5273
    @greysonjoaquinrivera5273 Рік тому +1

    Scratch: Fun coding for kids🎉
    Griffpatch: Nah, I do what i want to do

  • @oso_lacion
    @oso_lacion 2 роки тому

    I thought it's going to be an unboxing video. well, I unboxed a new type of simulation in scratch. good scratching sir

  • @idoblenderstuffs
    @idoblenderstuffs 2 роки тому +1

    a lot of my programming knowledge comes from watching giffpatch explaining how to make it in scratch and then me using the same concepts to use it in other languages.

  • @whitedragonbook2660
    @whitedragonbook2660 2 роки тому +1

    15:00
    I’m having issues with only the BOID X list updating and none of the other lists fill up at all, help would be greatly appreciated!

  • @rsvdark_main
    @rsvdark_main 6 місяців тому

    I remember making this tutorial! I figured out how to make the boids detect boids on the edges of the screen, so they don't clump up there, which was a common thing in this original video

  • @giovannielias8153
    @giovannielias8153 2 роки тому +1

    *Amazing Work! Keep it up!*

  • @nikodemusdelponte7198
    @nikodemusdelponte7198 2 роки тому +1

    That is amazing! Very great job!

  • @R3ptilian246
    @R3ptilian246 Рік тому +1

    By the end my brain was on a frying pan

  • @VvgoproZ
    @VvgoproZ 2 роки тому +1

    I just finished the project, and it turned out EPIC (ty griffpatch) but I think now I have a fear of variables

  • @sjthecreator
    @sjthecreator Рік тому +1

    Every time you say, “Sorry Scratchy, maybe next time”, ‘Next time’ never comes!😂

  • @pahalvaidya1094
    @pahalvaidya1094 2 роки тому

    Wow! This is real dang. Loved it.

  • @AdvaithOMGOfficial
    @AdvaithOMGOfficial 2 роки тому +2

    Hi @griffpatch! When I first saw this video, I was so excited to code it up and that's what I did! But one day, while I was playing with the settings of the tutorial, when I set all the sliders to minimum value (except cohesion and allignment; set them to maximum) I saw some bugs: 1. All the boids did not try to join a flock and were only trying to avoid each other at a slow speed. 2. If you wait for sometime, then set the cohesion to the max, wait some more and set it back to max and wait even more, one boid goes faster than the other suddenly and all the boids that join it go faster too. In no time, all the boids are going like rockets, even though the target speed is at minimum! Sometimes it works when you don't finish all the steps. So I was just asking you, @griffpatch to test out these bugs and make a video on how to fix these?

    • @griffpatch
      @griffpatch  2 роки тому +2

      He he, these don't sound like his to me. Without the right shower settings the boids can do all sorts of crazy things

    • @AdvaithOMGOfficial
      @AdvaithOMGOfficial 2 роки тому +1

      @@griffpatch Oh ok

  • @nightreapergamer4052
    @nightreapergamer4052 9 місяців тому +2

    I need help! I have rewatched the video so manyyyyyy times and I can't find the issue. Ever since I made the avoiding thing, they just avoid eachother until they start going in lines from one side to the other on their x position. No y pos movement. And in the group section I found not nothing wrong and they still doing the same thing... What am I doing wrong!?!?
    Edit: Well I found the issue, I forgot to change it from x to Y in the set distance area... :/

  • @bzthefirst
    @bzthefirst 2 роки тому

    WOW! this so cool, thanks for the tutorial griffpatch!!

  • @absolutenobody1secondago431
    @absolutenobody1secondago431 2 роки тому

    Griffpatch is one of the best coders i know

  • @isaacler2965
    @isaacler2965 2 роки тому +1

    7:04 I think you cuold optimise it by (if abs of x position > 240 change x by negative x position),and same with y position.

    • @griffpatch
      @griffpatch  2 роки тому

      Negative X wouldn't be enough to ensure the boid was still in range on the opposite side... But if you then change x by speed x afterwards then it should be...

    • @griffpatch
      @griffpatch  2 роки тому

      Hold on... Ok, so you could set x to negative old x. That would do it

  • @PetarĐurić-z2e
    @PetarĐurić-z2e 5 місяців тому

    I managed to make a game with this by adding a "this player id" variable which is treated the exact same as the "this boid id" variable, making all boids see the player as a potential flock mate and inflating the challenge; trying to survive up to an 100 score without touching a boid

  • @FluffyPancakeYT-fw6xl
    @FluffyPancakeYT-fw6xl 3 місяці тому +1

    Soo Satisfiying!

  • @NuggetCraft
    @NuggetCraft 2 роки тому

    WOW! this is sooo AMAZING! thank you soooo much griffpatch!

  • @Elechimobi
    @Elechimobi Місяць тому

    Excuse me, griffpatch, sorry to interrupt, but the direction of the boids isn't actually "itan(sx/sy)". I know you accidentally used "itan" instead of "atan". The actual direction is defined by "(atan(sx/sy))+(180*(sy

  • @saamthepuffer4336
    @saamthepuffer4336 2 роки тому

    BoldAI was a programming company that used to code and made the one was coding platform called ''Blocksworld'', it got aquired by Linden Labs in 2013.

  • @joaozin003
    @joaozin003 2 роки тому

    I like how you say "For All Sprites"

  • @SINTL
    @SINTL 2 роки тому +1

    Hey Griffpatch. Why do you put some variable at caps and some a lowercase??

    • @josefalexander5256
      @josefalexander5256 3 місяці тому

      Its to easily determine if the Variable is Local (lowercase | For this Sprite Only) or if it's Global (UPPERCASE | For all Sprites)

    • @josefalexander5256
      @josefalexander5256 3 місяці тому

      Though I have to say that it's not a necessary thing to do, you are free to use any names using any upper or lower cases as you please

  • @hi_beemo1808
    @hi_beemo1808 2 роки тому +2

    Wow you went from projects dedicated to kids to such complex algorithms.
    I guess I'll wait for your next AI project in scratch 😅

  • @endocreeper123
    @endocreeper123 2 роки тому +2

    THE AMOUNT OF VARIABLES ARE CRAZY

  • @_KDP
    @_KDP 2 роки тому

    this is such a cool simulation! it looks so cool! thanks griffpatch.

  • @helentowers6223
    @helentowers6223 2 роки тому

    10% video: actual tutorial
    90% video: griffpatch tells you to make another variable

  • @ThatCrownedKing
    @ThatCrownedKing 2 роки тому

    So excited!

  • @Nikaxe
    @Nikaxe 2 роки тому

    9:36 you can actually just put the main sprite in the center and create another sprite to get a point towards boid codeblock and drag it into the boid sprite. Replace the point towards center block with the block you just dragged into the sprite. You can then delete the other sprite.

  • @blenclad1265
    @blenclad1265 Рік тому +1

    griffpatch how can i use x and y variables instead of the positions? i wanted boids for my scrolling game but it doesnt work with variables

  • @Miru_Man
    @Miru_Man 2 роки тому

    You could initially set "other id" to "id + 1" and then have the repeat loop be "length of list -1" so it doesn't need the "if not the same id" part as it will be for every id except the boids id

    • @griffpatch
      @griffpatch  2 роки тому

      Sorry, you also need to process through the items before the id...

    • @Miru_Man
      @Miru_Man 2 роки тому

      @@griffpatch yeah it would wrap around the list, like if the id was the last item, id+1 would be the first item in the list. It would still do all the items except the id of the boid itself.

    • @Miru_Man
      @Miru_Man 2 роки тому

      @@griffpatch oh... actually I forgot lists don't work like selecting costume numbers... so you would have to use the mod function when changing "other id"....

  • @thijmencornelissen8722
    @thijmencornelissen8722 Рік тому +1

    Fun fact:
    In ancient Greece an R looks like a P --> ρ
    (Neg) Res inverted is ser, but in
    Greece it should look like this:
    ---> (neg) seρ...

  • @villeolof2000
    @villeolof2000 2 роки тому

    Did I see AI? I love AI This is going to be so amazing!! Thank you for making this amazing tutorials!!

  • @_yourself101_6
    @_yourself101_6 2 роки тому +1

    For some reason, my boids aren't getting together in groups. Is this just me, or is there something wrong with my code?🤔🤔

    • @griffpatch
      @griffpatch  2 роки тому +2

      I suspect something wrong :( tricky!

  • @p2v622
    @p2v622 2 роки тому

    Wow. Thnak you so much. I was going to write a program in python. But it's a bit hard for me. This video helps a lot to understand the concept.

  • @IceFX_Anime_edits_ig
    @IceFX_Anime_edits_ig 2 роки тому

    another way to make the small triangles go off the screen is to make another costume and make the costume a huge square then the script where you put the "move (x pos) (y pos)" right on top of that put "switch to costume ()" and put in the big square, then under the "move (x pos) (y pos)" put "switch to costume ()" and put the costume to the triangle. That makes it go off the screen because it switches to that big costume then moves then switches back to the triangle so it makes it glitch where theres still space for the big square when it goe soff the screen but then it switches back to the triangle and the triangle is in the same position

  • @Questionmark000-h9s
    @Questionmark000-h9s 2 роки тому

    this is the smoothes boids i ever seen it makes my eyes better too see .. and im not here to say that but thanks for making the smooth better for me to use i said it didn't work even tho the code was wrong ;-; but now it works but i still have to confugire the varaibles

  • @mrfrog0913
    @mrfrog0913 2 роки тому +1

    I just make them turn randomly before moving.
    Edit it makes it look like the AI isn't just a robot following a script ,but a somewhat smart machine putting in some effort to avoid each other
    Move 1 (or whatever you want)
    Turn random (-10 to 10 works well)
    That's literally it!
    No collision detector needed, if you want predictable AI it doesn't work though.

  • @Zen78410
    @Zen78410 2 роки тому

    Out of all the tutorials i watched i feel like this is the first time i saw griffpatch use the "distance to :sprite:" block