Page 119 - CodePilot V5.0 C4
P. 119

For example, let’s create the given script:  To paint a new sprite, follow the given steps:


                                                                 2     Select the Paint option.
 when  clicked

 pen down
                                                                 1     Hover the mouse
 set pen size to  5
                                                                pointer over the
 repeat  360   The number of sides of the                       Choose a Sprite button.
 shape will be entered in the
 move  1  steps
 repeat block.   The Costumes tab will open, allowing you to edit your sprite’s look or create a new
 turn  1  degrees  To figure out how much the   sprite.
 sprite needs to turn at each
 change pen  color  by  10                Fill Color     Outline Color
 corner, divide 360 by the
 number of sides the shape has.
                                                                                                            Undo

                                                                                                            Redo
 RAPID RECALL  Tick ( ) if you know this.

                     Costumes/
 1.  Operators blocks are used for mathematical calculations and    Backdrops Pane                     Special Tools
 logical comparisons.
                         Select                              Reshape
 2.  Pen blocks let your sprite draw on the stage.                    Eraser
                          Brush
                                                             Text

                            Fill                                      Circle
                                                                                                            Canvas
 CREATING CUSTOM SPRITES AND COSTUMES  Line



 You can edit as well as create your own sprites, backdrops and costumes with the   Rectangle
 help of the Paint Editor tool. It offers two drawing modes to help you design custom
                 Choose a Costume                                                                           Magnifying
 graphics for your projects:                                                                                  Tools

   Vector Mode: It lets you create smooth, stretchable shapes that stay sharp at   Vector/Bitmap Conversion

 any size.       The descriptions of these buttons are as follows:
   Bitmap Mode: It works like painting with tiny dots (pixels), perfect for detailed     Costumes/Backdrops Pane: Displays the current costume or background you’re

 freehand drawings, like colouring or sketching.  editing. Click on any costume or backdrop here to choose and edit it.

 CUSTOM SPRITES      Fill Color: This lets you choose the colour to fill the inside of your sprite.

                     Outline Color: This tool lets you change the outline (border) colour of your sprite.
 Custom sprites are characters you create. You can draw them from scratch or
 modify an existing sprite to suit your needs.     Undo: To erase your last action.
                     Redo: Reverse the last Undo action.

                     Special Tools: Shows options related to the active tool.




                                                                                        Scratch Coding Adventures  117
   114   115   116   117   118   119   120   121   122   123   124