Page 118 - CodePilot V5.0 C4
P. 118
For example, let’s create the given script:
when clicked
pen down
set pen size to 5
repeat 360 The number of sides of the
shape will be entered in the
move 1 steps
repeat block.
turn 1 degrees To figure out how much the
sprite needs to turn at each
change pen color by 10
corner, divide 360 by the
number of sides the shape has.
RAPID RECALL Tick ( ) if you know this.
1. Operators blocks are used for mathematical calculations and
logical comparisons.
2. Pen blocks let your sprite draw on the stage.
CREATING CUSTOM SPRITES AND COSTUMES
You can edit as well as create your own sprites, backdrops and costumes with the
help of the Paint Editor tool. It offers two drawing modes to help you design custom
graphics for your projects:
Vector Mode: It lets you create smooth, stretchable shapes that stay sharp at
any size.
Bitmap Mode: It works like painting with tiny dots (pixels), perfect for detailed
freehand drawings, like colouring or sketching.
CUSTOM SPRITES
Custom sprites are characters you create. You can draw them from scratch or
modify an existing sprite to suit your needs.
116 CodePilot (V5.0)-IV

