I do not understand variables... At all. I have no idea what they're for, or what they do.
And for that matter, I'd like to learn to make a horse turn -> when I push the arrow that reads -> but it is still turned <- when I push -> and it's going ->. (That's the best way I know how to explain it.)
I'm trying to make a horse Sim... A bit like the dog that comes with the system as an example, but different in many ways.
Hmm... All I got for now.
Thanks for reading!
~s
Offline
This topic might be able to help you learn a bit more about variables.. , as for the turning problem, try going to the sprite and clicking this button at the top of the script area.
Then add these blocks to whichever scripts you're using to move the horse:
[blocks]
<point in direction( 90 ) right
or
<point in direction( -90 ) left
[/blocks]
Last edited by 06dknibbs (2011-01-24 19:03:54)
Offline
shiann wrote:
I do not understand variables... At all. I have no idea what they're for, or what they do.
Try looking at this Scratch Wiki article
Offline
Variables just let you store values for later use, or even in different sprites. For example, you could have a script that asks for input, and then says what you said back.
When green flag clicked Ask "Say something!" and wait Set {variable name} to {answer} Say {variable name} for two seconds
Offline
Variables are useful for lots of stuff. If you want to use one number over and over, create a variable, set the variable to your number, and use the variable instead of the number. That way, if you want to change the number that you use, all you have to do is change the number the variable is set to.
Offline