官术网_书友最值得收藏!

Adding a pre-made sprite

This is one of the easiest ways to get programming quickly! The second of our buttons is called the Choose new Sprite from File button. This will open up a dialog box showing you all of the available sprites in the Scratch library.

You have many different sprites to choose from, including the categories of animals, fantasy, letters, people, things, and transportation.

Note

Remember, sprites are any objects you will be programming to do something in your overall program. In many cases, they will be characters in a story or in a game. In some cases, they may be buttons your user will interact with or some other general object. This is where the categories of letters or things come into play!

Getting ready

For the purposes of our first program, we'll choose one of the animals. You can choose whichever sprite you want, what matters is the programming we'll put into it later on.

How to do it…

Follow these steps and you'll have a new sprite to program within no time:

  1. Click on the first button from the set of four shown in the following screenshot:
  2. A dialogue box will pop up to select the sprite. Choose the folder for the type of sprite you want. Either double-click on the folder or click on OK.
  3. Find the sprite you like and then click on OK.
  4. The sprite will now be on the stage and ready to program with.

There's more…

The third button in the set we mentioned before allows us to upload a sprite from our computer. If you've created a picture of something on your own, you can use this tool to upload it. The last button allows us to take a picture using a webcam and then upload that as a sprite!

See also

  • The Starting up Scratch recipe in this chapter
  • The Changing the stage background recipe in this chapter
主站蜘蛛池模板: 惠水县| 姚安县| 沙坪坝区| 休宁县| 湛江市| 大英县| 罗江县| 高陵县| 呼图壁县| 囊谦县| 昭苏县| 托克逊县| 布拖县| 张北县| 沙雅县| 穆棱市| 应城市| 廉江市| 锦州市| 香河县| 渝北区| 太康县| 海原县| 德庆县| 松阳县| 资中县| 盐池县| 萝北县| 屯门区| 伊通| 新乡市| 江口县| 元阳县| 名山县| 梨树县| 铜鼓县| 喀喇沁旗| 藁城市| 蒙自县| 黄平县| 临潭县|