What are shadowed blocks?
Yesterday I introduced you to hacking Scratch. I asked what you'd like me to explain next, and I received two requests: BusterBrown1218 asked: Can you tell us how to put blocks inside of a define block? Raihan142857 asked: How do you hack a custom block to make it have dropdown inputs? Funnily enough, these two are both related to a block's shadow property, and so that is what I will talk about today. Begin by t hinking of a block with a round dropdown, such as the key pressed? block (it must have a round dropdown, not a square dropdown, like a set variable to block). The Scratch editor counts this as a single block, but actually the dropdown is counted as its own block. If you download the project and open the project.json, as I showed you last time, you'll see two different blocks: one has the opcode sensing_keypressed , and the other, sensing_keyoptions . The last one is the dropdown where you can select what key to use. If you look at the properties of ...