Global Variables:
When variables are first created, their automatic type is Global. Global variables can be accessed and changed by a sprite or Stage.
Local Variables:
Local variables are created the same way as global variables, but you have to specify which sprite it is for. Local variables can only be changed by their owner, and other sprites can only receive their values.
Cloud Variables:
Cloud variables’ data is stored on the Cloud Server. Their value remains the same even when running the program again.
Previous Section
Variable BlocksNext Section
Assignment: Using Variables in ScratchCopyright © 2021 Code 4 Tomorrow. All rights reserved.
If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.