Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Tutorial- Non-Cloud Data
- makethebrainhappy
-
1000+ posts
Tutorial- Non-Cloud Data
Hello! Today I'm here to talk about Non-Cloud Data! I've made this tutorial to show you the full potential of a data block!
Most people know the typical use's for the data block- local high scores and stuff with math equations… Maybe the first is more
Well known, well below I will list some more uses and explain the previous one's.
High-Scores
These High Scores are local and don't save. It's usually that when something happens (you do something) your score increases usually using this data block.
Math Equations
You put a number in and something comes out. It can be complicated or simple. Some examples
Pen Color Changing
>>>Create Variable Y and show it
>>>Right Click Variable Y on the Scratch Screen and set It to slider. Right Click again and set the min/max (doesn't matter what it is, just have at least a 10 number difference)
>>>Add this script
Volume Changing
This could be located in the settings of your game, in case you have volume.
>>>Name Variable Z and show it
>>>Right Click it and set it to a sliding variable. Right-Click it again and set the min and max at 0 and 100 !!!
>>>Then insert this script
Most people know the typical use's for the data block- local high scores and stuff with math equations… Maybe the first is more
Well known, well below I will list some more uses and explain the previous one's.
High-Scores
These High Scores are local and don't save. It's usually that when something happens (you do something) your score increases usually using this data block.
change [ x] by (1)
Math Equations
You put a number in and something comes out. It can be complicated or simple. Some examples
((X) + (2))
Pen Color Changing
>>>Create Variable Y and show it
>>>Right Click Variable Y on the Scratch Screen and set It to slider. Right Click again and set the min/max (doesn't matter what it is, just have at least a 10 number difference)
>>>Add this script
when green flag clickedThis can be helpful when creating a small paint app.
forever
set pen color to (Y)
end
Volume Changing
This could be located in the settings of your game, in case you have volume.
>>>Name Variable Z and show it
>>>Right Click it and set it to a sliding variable. Right-Click it again and set the min and max at 0 and 100 !!!
>>>Then insert this script
when green flag clickedThis can be applied into anything with music
forever
set volume to (Z) %
end
Last edited by makethebrainhappy (July 13, 2015 23:27:43)
- makethebrainhappy
-
1000+ posts
Tutorial- Non-Cloud Data
move () variableVariable
Oh I get it.
- makethebrainhappy
-
1000+ posts
Tutorial- Non-Cloud Data
For the pen thing, you don't want:when gf clicked
forever
change pen size by (Y)
end
Instead it should be:when gf clickedYou want to set the pen relative to 0, rather than relative to it's current value.
forever
set pen size to (Y)
end
Sigton
Ok Thanks

- AndrewBerezaafan
-
100+ posts
Tutorial- Non-Cloud Data
Yeah, i know how to do this already but here is some advice.
Create a short animation of it on a game to show you how to use it properly.
Are YOU a good animator? if so I NEED YOU NOW!!!! Come apply here to join the compition!!
Create a short animation of it on a game to show you how to use it properly.
Are YOU a good animator? if so I NEED YOU NOW!!!! Come apply here to join the compition!!
Follow me! I appreciate any-one that follows me!
Also check out my projects, leave a like and a fav :D
when green flag clicked
if <(signature) = [Done]> then
set [signature v] to [Done]
say [Bye!]
end
- makethebrainhappy
-
1000+ posts
Tutorial- Non-Cloud Data
Yeah, i know how to do this already but here is some advice.
Create a short animation of it on a game to show you how to use it properly.
Are YOU a good animator? if so I NEED YOU NOW!!!! Come apply here to join the compition!!
How sneaky the advertisement is xD
- Discussion Forums
- » Help with Scripts
-
» Tutorial- Non-Cloud Data