Friday, November 5, 2010

Ants - moving the character

We have made an example in scratch that relates to moving a character. We basically used the same controls we would use for any character and they are listed below. To make an example and actually implement it on a project we added some extra control structures in which enabled us to have a smooth finish. we did find little bugs all the time but  finding them is what made us keep on improving them. Here is a little screenshot of the script.
 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