Block Functions Number of
blocks available
move 10 steps
Stack Block
This block is used to perform the main functions during the execution of the script. These blocks have a notch on the top and a bump at the bottom, so that other blocks can be stacked above and below them. 77
A Boolean block is used to perform logical operations. These blocks represent the boolean logic that returns either true or false. 13
length of world
Reporter Block
This block continues the value that fits into another block. These values can be numbers, strings, or boolean. 37
This block is used for checking the conditions and executing the loops. These blocks have C-shaped mouth and are also known as Wrap blocks 5
This block is used to end the script. They are shaped with a notch at the top and a flat bottom. You cannot place any blocks below them. 2

USING MOTION BLOCKS

Motion blocks are the blocks that control a sprite's movement on the stage.These blocks are colour-coded as medium blue.All the instuctions related to the movement of the spriteare given under the Motion block category.
Motion Blocks Usage
move 20 steps This block moves the sprite for the specified number of steps in the forward (right) direction. To move the sprite in the backward (left) write the number with a preceding (-) minus sign. For example,-20.
turn 15 degrees This is block is used to turn the sprite in clockwise direction.To turn the spirt in anticlockwise direction,use "turn 15 dgrees".
go to x: 0 y: 0 tThis block sets the sprite's X and Y position to the specified value.It is used when ever a sprite has to jump to another spot.
go to mouse-pointer This block instructs the sprite to follow the mouse pointeror another sprite.
glide 1 secs to x:0 y:0 This block moves the sprite smoothly to the specified X and Y position in the specified number of seconds.
point in direction 90 Using this block,you can point the sprite in any of the four directions, i.e.,(90)right,(-90) left,(0) up,and(180) down. By default, it displays 90 in the white box.
if on edge,bounce This block is applied so that while moving on the stage, if the sprite reaches the edge, it does not hide itself; instead, it starts bouncing

Learning Computers with Kips
225


Previous page Home Next page