Page 83 - Click_GPT_c7_Flipbook
P. 83

Removing a Block
                 To remove a block in AI Connect, follow the given steps:

                 Step 1   Click and hold on the block from script area that you want to
                          remove.

                 Step 2   Drag it towards the dustbin icon on the bottom right corner
                          of the script area and drop it.

                                                    OR
                 Step 1   Drag the set of blocks back to the block palette and drop them.


                 What is Turtle?
                 A turtle is a point-sized cursor that we can move around using python programming language.
                 It is used to make drawings in AI Connect. It can also be modified in different ways to bring
                 multiple effects thereby making a graphical design.

                 It follows a written code and draws wherever it moves.

                    A turtle can design by moving backward or forward with number
                 l
                   of steps to draw thereby making a shape.


                    A turtle can turn or move sideways by providing angles.
                 l

                    A turtle can be lifted up while moving so it does not draw for
                 l
                   some distance to create gaps in the drawing.


                    A turtle can change colour to draw any multicoloured graphic
                 l
                   design.


                 Creating a Turtle
                 In order to create turtle, we need a variable. So, the first thing we will do is to open up a  new
                 activity and create a new variable. To create a new variable, follow the given steps:
                 Step 1   Click on Create variable                     block from the Variables category and name

                          your variable anything (Let us name it—T).

                 Step 2   Drag out set T to                  block from the variable category.


                 Step 3   Go to draw then Turtles                     block category and drag out the create new


                          turtle                  block to the script area.



                 Step 4   Attach it to the set T                  block in the script area. From here on, the turtle is

                          created and more turtle blocks can be used to control it.



                                                                                     Starting with AI Connect  81
   78   79   80   81   82   83   84   85   86   87   88