2.4k views
4 votes
In Scratch, when you are adding a menu to your game, what type of block is used to communicate when the menu should appear?

1. menu block
2. broadcast lock
3. level block
4. flag block

User Feathj
by
7.8k points

2 Answers

2 votes

Final answer:

In Scratch, a broadcast block is used to communicate when the menu should appear, allowing for interaction between different sprites.

Step-by-step explanation:

In Scratch, when adding a menu to your game, the type of block used to communicate when the menu should appear is called a broadcast block. This block can send a message to other sprites, triggering scripts that contain the 'when I receive [message]' hat block.

For example, you might have a broadcast block that sends a message 'show menu', and in your menu sprite, you would have a script starting with 'when I receive show menu' that then contains the blocks that display the menu elements on the screen.

User EladG
by
7.9k points
7 votes

Final answer:

In Scratch, a broadcast block is used to signal when a menu should appear in a game. This block sends a message that other scripts can respond to for displaying menus or changing game states.

Step-by-step explanation:

In Scratch, the type of block used to communicate when a menu or any other part of the game should appear is the broadcast block. When you want to create an interactive menu, you typically design a 'When flag clicked' block to start the game and use the broadcast block to send a message at a specific point in the game, which can then be received by a 'When I receive [message]' block to show the menu. It's a powerful feature used to manage different sections or levels within a Scratch project.

User Rares Dima
by
7.5k points