This example is basically- making the "mother" ant move towards the fortune cookie. Then when it touches the fortune cookie, it will say "yummy" and make the sound of a "shaker"(we couldn't find the sound of chomp). Then the rest of the "lazy baby" ants come and make that noise too and stay there. and appear to be eating the fortune cookie.
We had to make each of the baby ants eat the fortune cookie. Therefore we had to have separate control structures for each of the ants which instructs them to point towards the cookie and walk to it when the mother ant says yummy.
No comments:
Post a Comment