ScratchData LogoScratchData
Back to kriblo_test's profile

Example: Clones accessing parent properties

KRkriblo_test•Created February 5, 2021
Example: Clones accessing parent properties
7
3
56 views
View on Scratch

Instructions

Use arrow keys to move it around, and click to rotate. In the Sensing category of blocks there is a block which allows you to access properties of the Stage (like backdrop #) and properties of other sprites. However, by default you can't access properties of the sprite running the current code. Why would you want to do that? Well, it would be nice if clones could access properties of the parent sprite. And they can, using a block which return the name of the current sprite, like the "join" block, or a variable. See inside. You should also be able to select a property of your sprite in a second sprite, and then drag the block to your sprite. If that doesn't work, try the variable approach above (and inside). All code by me (@kriblo).

Project Details

Project ID483942175
CreatedFebruary 5, 2021
Last ModifiedFebruary 8, 2021
SharedFebruary 5, 2021
Visibilityvisible
CommentsAllowed