Sunday, July 19, 2009

Sprites : Crawling & Running Ant


Once you've tried the sprites library in Scratch, you might already notice that some of them have pre-built scripts. In the picture above, you will see two script blocks from the sprites called "crawling ant" and "running ant", respectively (both are from "Animals" category). From those simple snippets, we might immediately now, how these sprites will act: crawling ant moves only if an arrow key is pressed, while the other ant just take key input to change its moving-direction.

No comments:

Post a Comment