Ch: 9 Broadcasting by Events

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 29

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

30 Terms

1

What is an Event?

An Event is an action that causes something to occur

New cards
2

Why do Events play a major role in coding a game?

As events make the game interactive, and make some changes in the game, they play a major importance in coding a game

New cards
3

What are “Event” Blocks?

Event Blocks are blocks which are light yellow in colour, and are used to trigger other blocks connected to them. Most of these blocks have a bulge on top of them, like a hat. As nothing can be attached on top of these event blocks, they are also called hat blocks

New cards
4

Why are “Event” Blocks essential for every project?

Event Blocks are essential for every project, as without them, a project would not be able to begin

New cards
5

Define the “When Green Flag clicked” Block

This block is used to start running a Scratch Project. The blocks connected to this block will run only when the Green Flag is Clicked. Therefore, this block is commonly known as the Start Block

New cards
6

Define the “When this sprite clicked” Block

This block is used to make the sprite perform some action, when it (the sprite) is clicked

New cards
7

Define the “When Space Key Pressed” Block

This block has a drop-down, menu, from which we can set the key to be pressed. When the key is pressed, the blocks connected to this block run, and the sprite performs the actions

New cards
8

Define the “When Backdrop Switches to” Block

This block also has a drop-down menu, which has all the backdrops used in the project, from which, we select one backdrop. When the backdrop switches to the selected backdrop, the blocks attatched below this block run, and the sprite performs the actions

New cards
9

Why don't Event Blocks provide interaction among the sprites?

Event Blocks don’t provide interaction among the sprites, and they depend of the user's actions (such as mouse click, key press, etc.), which is why, they cannot provide scope of interaction among the sprites.

New cards
10

What do we use to make the sprites interact with each other?

Broadcasting is used to make the sprites interact with each other

New cards
11

What is “Broadcasting” ?

Broadcasting is used to let one part of the code commuunicate with another part. This enables coordinated actions across multiple sprites using Broadcast

New cards
12

Define the “When I receive Broadcast” Block

This block will work when it recieves a specific broadcast (message). Once it recieves the broadcast, the blocks attached below this block run

New cards
13

Define the “Broadcast Message” Block

The “Broadcast” block will send a message to the other sprites, and then immediately run the next block attached below it

New cards
14

Define the “Broadcast and Wait” Block

The “ Broadcast and Wait” blocks works similiar to the “broadcast” blocks, but it will wait for all the sprites recieving the message to complete their codes, and then run the next block attached below it

New cards
15

From where was the term “Broadcasting” derived?

The name “broadcasting” is derived from an agricultural method, known as the broadcast method. In this method, the farmer walks around the field, randomly scattering the seeds

New cards
16

Where do we use “sprite cloning”?

In cases where we need multiple identical sprites, (such as bullets and enemies) which becomes very difficult to code individually, we use sprite cloning.

New cards
17

What is cloning in Scratch?

In Scratch, cloning allows a sprite to create a copy of itself while the project is running

New cards
18

Who is Dolly the sheep?

Dolly the sheep is an experiment carried out by a group of scientists in Scotland, to create a clone of a sheep

New cards
19

What does the cloning feature consist of?

The cloning feature consists of many copoes of a sprite, known as clones, which have the same code as the original, but run independently

New cards
20

Why is cloning useful?

Cloning is useful in Scratch, as it saves the user the hassle of writing the same code for each of the sprites

New cards
21

Where are the blocks used for making and coding clones present in Scratch?

The blocks used for making and coding clones are available in the Control section of the Block Pallette

New cards
22

Define the “Create Clone of Myself” Block

This block creates a clone of the specified sprite, which can be selected from the drop-down menu

New cards
23

Define the “When I start as a clone” Block

This hat block is used to run a code for a clone after its creation

New cards
24

Define the “Delete this Clone” Block

This block will delete the clone which is running, it also stops all of the clone’s codes

New cards
25

Why is having knowledge about blocks responsible for logic important?

Having knowledge about blocks responsible for logic is important, as it helps us program it is the way or logic we want to

New cards
26

What are “Logical Operators” ?

Logical Operators are used to combine multiple conditions into one

New cards
27

When to use the Or Block?

The Or block is used when the same action can be connected using either (or both) conditions

New cards
28

What does the Or Block do?

The Or Logical Operator, is used to combine two conditions, such that the action occurs, if atleast one of the conditions is fulfilled

New cards
29

When to use the And Logical Operator?

This Logical Operator is used to connect two conditions into one single action

New cards
30

What does the And Logical Operator Block do?

The And Logical Operator is used to combine two conditions into one, such that an action occurs only if both the conditions are fulfilled

New cards

Explore top notes

note Note
studied byStudied by 3 people
87 days ago
5.0(1)
note Note
studied byStudied by 70 people
134 days ago
4.0(1)
note Note
studied byStudied by 3 people
704 days ago
5.0(1)
note Note
studied byStudied by 7 people
884 days ago
5.0(1)
note Note
studied byStudied by 57 people
625 days ago
5.0(1)
note Note
studied byStudied by 14 people
857 days ago
5.0(3)
note Note
studied byStudied by 14 people
878 days ago
5.0(1)
note Note
studied byStudied by 8 people
887 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (20)
studied byStudied by 3 people
809 days ago
5.0(2)
flashcards Flashcard (28)
studied byStudied by 2 people
626 days ago
5.0(1)
flashcards Flashcard (345)
studied byStudied by 35 people
136 days ago
5.0(2)
flashcards Flashcard (22)
studied byStudied by 6 people
514 days ago
5.0(1)
flashcards Flashcard (130)
studied byStudied by 72 people
533 days ago
5.0(1)
flashcards Flashcard (45)
studied byStudied by 12 people
780 days ago
5.0(1)
flashcards Flashcard (128)
studied byStudied by 66 people
556 days ago
4.8(6)
flashcards Flashcard (57)
studied byStudied by 64 people
80 days ago
5.0(3)
robot