Lesson 1,
Topic 1
In Progress
Activity: Tobi Jump
Tobi is finding it difficult to remember all the numbers. So, Tobi decided to walk on the number tile so that it makes him easier to remember the numbers. Let’s help ‘Tobi’ to create the number tile and jump on the numbers in the correct order.
Let us follow the steps given below and complete the task. Ready, set, and go.
Step-by-step
- Open the PictoBlox and select the coding environment as ‘Block Coding’ coding as shown.
- We are going to help ‘Tobi’ to Jump on the numbers. Firstly, we have to add the ‘XY-Grid’ Where the Tobi will jump on numbers.
- We will now, click on ‘Choose a backdrop’ option and type in search bar ‘XY grid’ and select the backdrop ‘XY-grid’ as shown below
- Now, we have to add number ‘Glow 1’ sprite in the ‘XY – Grid’ by using the choose a sprite and type ‘Glow-1’ in the search bar and select Glow-1. Similarly choose the number sprites 2, 3, 4 and 5.
- Oh! All the numbers and my Tobi overlapped. No worries, let us pick and place it in the respective place as shown below.
- It’s time to make our sprite ‘Tobi’ jump. Select the sprite ‘Tobi’. Let us increase its size as he looks small on the stage. Open the Looks palette and drag and drop the set size to the (150) in script area. This block will make our sprite increase its size.
- Now time to make our ‘Tobi’ jump. Open the Motion palette and drag and drop the go to random position’ block change the random position to the ‘Glow 1’ sprite by clicking on the small inverted triangle as shown below.
- Connect the ‘go to Glow-1’ block down to the Set size to block. Now, let us make the sprite ‘Tobi’ change its size and jump to the ‘Glow1’ number by using the Green Flag clicked.
- Similarly, let us make our ‘Tobi’ jump on all the number tiles by using the ‘go to’ The code looks like as shown below.
- Oh! My ‘Tobi’ is jumping very fast. Let me reduce the speed of the ‘Tobi’. Do you remember which block will help us to reduce the speed? Yes ‘Wait’ block. Let us add the wait block in the middle of all the ‘go to’ blocks.
- Finally, my ‘Tobi’ can jump on the ‘number tile’ and it helps him to remember the number in the correct order.
- Run and test the code by pressing the ‘Green Flag’.
Output
Save your program
Let us save the project with the file name ‘ Jump on numbers’.