I took the Lesson 5.1 project and changed it up a bit. First off by making the different animals into a group of snails, and changing the fruit and emeralds in the area into skeletons and femurs. While the appearance has changed what the snails do is the same as the 5.1 project. From moving to each object in the scene finding out what is food and what isn’t, and preforming a quick dance with his snail friends.
This is the main function so it doesn’t include what the procedures do, but does give a good understanding of how the snail knows what is food and what isn’t food. The two functions that are used are called airkick and move the airkick is seen at the beginning when the snails go up into the are and kick. While the move tells the snail where to face, where to go, and how to move its body forward and backward while moving. Then I have implemented a array that groups all the snails into one object that I can manipulate. This is shown when all the snails change to opacity 0 together. Which is done with one instruction of change opacity to 0 instead of 4 thanks to the slither array.