what are variables for? How do u use them? Why?
Offline
http://scratch.mit.edu/forums/viewtopic.php?id=1346
Offline
bingbongwong01 wrote:
what are variables for? How do u use them? Why?
You can use them for scores (easy first-time application), but if you want serious gaming, you'll need them! Every scrolling game uses variables. You need old x and old y to stomp Goombas. Without variables, the best thing on Scratch would be Cube World!!! (AAAHHH!!!)
Offline
Here's another thread that might help answer your question
http://scratch.mit.edu/forums/viewtopic.php?id=1346
Offline
http://scratch.mit.edu/forums/viewtopic.php?id=13875
one of my tutorials is on variables
Offline
Variables are basically a place to store information.
If you had a "move 5 steps" block then it would just move 5 steps, but if you made it a "move variable1 steps" block and set variable1 as 5 then it would do the same thing, except later on in other bits of the code you could change that 5 to a 10 etc... and instead of having to use a new bit of code it just goes back to the "move variable1 steps" block, which will now move 10 steps.
Offline
o thanks guys and girls out there who replied ton my question:)
Offline