- Scratch Cookbook
- Brandon Milonovich
- 328字
- 2021-08-13 16:40:15
Adding a custom sprite
Now to the really fun part: adding in a new sprite! Directly below the stage area is a set of three buttons, as you can see in the following screenshot:

Each of these buttons helps us to import the sprites we want in our program. These are the buttons we'll work with for the next couple of recipes.
Getting ready
The second of these buttons gives you the best opportunity to bring out your creative side. This opens up the paint editor. From here, you can create your own sprite or import one of the sprites from the Scratch library, and then customize it. We won't get into a lot of depth to using it now, but if you're feeling to make your own sprite, take some time to play around.

In the preceding screenshot, you'll see the paint editor that gives you many of the functions that you have in the commonly known basic paint software that comes with your computer. In the beginning, it might be easier to use the Import button to bring in a sprite from the library. Then you can use the various paint cropping and drawing tools to make the sprite your own.
Tip
One of the most useful aspects of the paint editor is the ability to use it to change the color of sprites. Not a fan of the yellow cat? Want to make a black cat for Halloween? Easy; just use a combination of the paint bucket and paint brush tools!
How to do it…
These are the steps we'll need to create a custom sprite (or customize one of the pre-made ones):
- Click on the second of the buttons described previously.
- The paint editor (shown in the previous screenshot) will open up.
- Use the tools of the paint editor to create the sprite of your choice.
- Click on OK once you've finished editing the sprite. Your sprite will now be in the stage.
- Python數(shù)據(jù)挖掘:入門、進階與實用案例分析
- Spark快速大數(shù)據(jù)分析(第2版)
- Modern Programming: Object Oriented Programming and Best Practices
- 企業(yè)大數(shù)據(jù)系統(tǒng)構(gòu)建實戰(zhàn):技術(shù)、架構(gòu)、實施與應(yīng)用
- 卷積神經(jīng)網(wǎng)絡(luò)的Python實現(xiàn)
- 數(shù)據(jù)驅(qū)動設(shè)計:A/B測試提升用戶體驗
- 企業(yè)級數(shù)據(jù)與AI項目成功之道
- 大數(shù)據(jù)技術(shù)入門
- 數(shù)據(jù)庫設(shè)計與應(yīng)用(SQL Server 2014)(第二版)
- 辦公應(yīng)用與計算思維案例教程
- 數(shù)據(jù)庫應(yīng)用系統(tǒng)開發(fā)實例
- 智慧的云計算
- 跨領(lǐng)域信息交換方法與技術(shù)(第二版)
- SAS金融數(shù)據(jù)挖掘與建模:系統(tǒng)方法與案例解析
- Visual Studio 2013 and .NET 4.5 Expert Cookbook