Variables Category
1. Make a Variable
If the Reporter block you want cannot be found in any current categories, you can set one by creating a variable.
2. Variable Name
Set a name for your Reporter block. In this example, let's set it to new variable.
Example:
When you press the space key, the sprite reports the value of new variable.
3. set ( ) to ( )
Sets the variable to the specified number.
Example:
When you press the space key, new variable is set to 100.
4. change ( ) by ( )
Changes the variable by the specified amount.
Example:
When you press the space key, new variable is increased by 1.
5. show variable ( )
Displays the value of the variable on the stage.
Example:
When you press the space key, the value of new variable is displayed on the stage.
6. hide variable ( )
Hides the value of the variable from the stage.
Example:
When you press the space key, new variable is hidden from the stage.
7. Make a List
If multiple variables are used, you can create a list to manage them.
8. List Name
Set a name for your list. In this example, let's set it to new list.
9. Add ( ) to ( )
Adds variables to the list.
Example:
When you press the space key, the sprite reports the information contained in new list.
10. delete ( ) of ( )
Deletes an item from the list.
Example:
When you press the space key, the first item is deleted from new list.
11. delete all of ( )
Deletes all items from the list.
Example:
When you press the space key, all items are deleted from new list.
12. insert ( ) at ( ) of ( )
Inserts an item at the specified position of the list.
Example:
When you press the space key, the item thing is inserted as the first item.
13. replace item ( ) of ( ) with
Replaces the specified item of the list with another item.
Example:
When you press the space key, the first item is replaces with thing.
14. item ( ) of ( )
Specified item of the list.
15. item # of ( ) in ( )
Number of the specified item in the list.
16. length of ( )
Total number of items in the list.
17. ( ) contains ( )?
Determines whether the list contains the specified element.
18. show list ( )
Displays the list on the stage.
19. hide list ( )
Hides the list from the stage.