KnowledgeBoat Logo

Computer Applications

Carefully go through some sample scripts given below. What is happening in each of these scripts ?

 What is happening in this script? Scratch Programming I, Computer Applications Code 165 Sumita Arora Solutions CBSE Class 9.
 What is happening in this script? Scratch Programming I, Computer Applications Code 165 Sumita Arora Solutions CBSE Class 9.
 What is happening in this script? Scratch Programming I, Computer Applications Code 165 Sumita Arora Solutions CBSE Class 9.

Scratch

1 Like

Answer

Script 1

When the sprite is clicked, it will repeatedly move 5 steps in the direction it's facing. If it reaches the edge of the screen, it will bounce back and continue to move 5 steps infinitely.

Script 2

When the sprite is clicked, it will repeatedly move 5 steps in the direction it's facing. If it reaches the edge of the screen, it will bounce back and it will also gradually rotate clockwise if it's facing right, or anticlockwise if it's facing left.

Script 3

When the green flag is clicked, the sprite will face to the right, resize to 60% of its original size and move to the position with coordinates (-100, -70). It will check if it's touching another sprite named "Sprite1". If it is, it will display the text "Woof!" in a speech bubble for 2 seconds.

Answered By

1 Like


Related Questions