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

  • Scratch Cookbook
  • Brandon Milonovich
  • 322字
  • 2021-08-13 16:40:15

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
主站蜘蛛池模板: 黄浦区| 禹州市| 宁阳县| 湘西| 保定市| 西峡县| 望江县| 永新县| 车险| 盘锦市| 商洛市| 贡觉县| 红安县| 大安市| 西宁市| 全椒县| 泽库县| 额济纳旗| 峨眉山市| 隆安县| 芦山县| 霍州市| 天水市| 徐州市| 金阳县| 临潭县| 房产| 濮阳县| 永春县| 邢台县| 射阳县| 沅陵县| 武冈市| 贵定县| 格尔木市| 甘泉县| 嘉峪关市| 西畴县| 永登县| 陆川县| 台前县|