Gets the value of a sprite’s property.
Sprites have a variety of properties listed below. This block has many uses, such as making a sprite properties match or debugging the code.
Make the cow move forward by its size each time it is clicked.
There is a bee hiding in a random location on the screen, but where is it? Printing the x and y positions of the sprite helps you find it faster.
Name | Description |
---|---|
property | The property of the sprite: size, rotation, x position, y position, movement direction, tint |
sprite | The sprite or sprite group whose property is being called |
Found a bug in the documentation? Let us know at documentation@code.org