@bharvey
Sorry ! my previous script should be replaced by this one :
script variables <a><var><obj>
set <a> to "kiki"
set <var> to "secret"
set <obj> to "other guy"
launch [the script [[set <var> to <a>][say [<var> of <obj>] for <2> secs]] ] of <obj>
Offline
xly wrote:
The trick is to write this script into the <other guy > script area where <secret> is visible, and then duplicate this script into <Alonzo> script area.
But when you duplicate the script, it also duplicates the variable in Alonzo. That's what we're trying to avoid.
Your other way works, but is essentially the same as Jens's way. You used a script variable and he used a formal parameter of a lambda, but you're both setting a variable to the name of the other sprite's variable.
Offline
My school district blocks normal websites AND programs!
Yet it seems half of the budget goes to technology. Strange, because you can't do anything on the computers.
Last edited by shadow_7283 (2011-05-03 17:35:26)
Offline
bharvey wrote:
But, Jens, why doesn't this work:
SCRIPT VARIABLES <secret>
SET [[THE <secret> BLOCK] OF <sprite2>] TO <something>
Ah, nice try (I like your idea)! This doesn't work because SCRIPT VARIABLE reporters are a special bunch and can only find other lexically scoped variables and parameters, which, given Scratch's legacy unfortunately doesn't apply to "normal" local or global ones.
Offline
bharvey wrote:
shadow_7283 wrote:
Strange, because you can't do anything on the computers.
I bet you can type your papers on Word. Isn't that what computers are for?
If you can get past compatibility issues with Word 2003 and 2007, as well as disappearing files.
Offline
bharvey wrote:
shadow_7283 wrote:
Strange, because you can't do anything on the computers.
I bet you can type your papers on Word. Isn't that what computers are for?
Welcome to the Internet.
Anyways, what are you doing programming BYOB if computers are only for Word?
Offline
scimonster wrote:
Anyways, what are you doing programming BYOB if computers are only for Word?
Being sarcastic!
When I was a high school teacher (early '80s) it used to drive me crazy when kids said "anyways," so I tried to drive them crazy back by saying "anyhows." I'm surprised it hasn't gone out of style!
Offline
bharvey wrote:
scimonster wrote:
Anyways, what are you doing programming BYOB if computers are only for Word?
Being sarcastic!
When I was a high school teacher (early '80s) it used to drive me crazy when kids said "anyways," so I tried to drive them crazy back by saying "anyhows." I'm surprised it hasn't gone out of style!
Who says "anyhows" anyways?
Offline
When is 3.1 gonna be released for real? I can't just download and install stuff so I'm not taking these tests. ^^
Offline
shadow_7283 wrote:
bharvey wrote:
I did not mean to offend anyone. I bet you a nickel that shadow_7283 was not offended.
A nickle saved is a nickle earned. Which means you just earned a nickle.
As bharvey was saying, it was just a joke about stereotypes. And it is just an opinion. Anyways, I don't have a facebook, myspace, or twitter account. And internet privacy is a very important thing to be aware of.
You are right. All I have is twitter and skype.
Offline
scimonster wrote:
bharvey wrote:
shadow_7283 wrote:
Strange, because you can't do anything on the computers.
I bet you can type your papers on Word. Isn't that what computers are for?
Welcome to the Internet.
Anyways, what are you doing programming BYOB if computers are only for Word?
Me not have windows. Word windows only. I use openoffice.
Offline
williambl wrote:
scimonster wrote:
bharvey wrote:
I bet you can type your papers on Word. Isn't that what computers are for?Welcome to the Internet.
Anyways, what are you doing programming BYOB if computers are only for Word?Me not have windows. Word windows only. I use openoffice.
Me too actually.
Offline
bharvey wrote:
xly wrote:
The trick is to write this script into the <other guy > script area where <secret> is visible, and then duplicate this script into <Alonzo> script area.
But when you duplicate the script, it also duplicates the variable in Alonzo. That's what we're trying to avoid.
Your other way works, but is essentially the same as Jens's way. You used a script variable and he used a formal parameter of a lambda, but you're both setting a variable to the name of the other sprite's variable.
Thanks, now I understand your point.
But anyway, the idea to get the control (both variables and action) of any sprite by any other sprite can be very useful. Please find an example of this at :
http://www.xleroy.net/ByobTuto/New/102-changevar.html
Offline
scimonster wrote:
When is 3.1 gonna be released for real? I can't just download and install stuff so I'm not taking these tests. ^^
I would have thought it'd be ready by now, but you guys keep finding obscure bugs! But honest, the current beta isn't going to blow up your computer or install spyware or anything. Go ahead and install it.
Offline
bharvey wrote:
scimonster wrote:
When is 3.1 gonna be released for real? I can't just download and install stuff so I'm not taking these tests. ^^
I would have thought it'd be ready by now, but you guys keep finding obscure bugs! But honest, the current beta isn't going to blow up your computer or install spyware or anything. Go ahead and install it.
It requires passwords so I can't.
Offline
williambl wrote:
scimonster wrote:
bharvey wrote:
I bet you can type your papers on Word. Isn't that what computers are for?Welcome to the Internet.
Anyways, what are you doing programming BYOB if computers are only for Word?Me not have windows. Word windows only. I use openoffice.
Actually, there is Office for Macs as well (assuming you don't have Linux).
[/offtopic]
Offline
bharvey wrote:
scimonster wrote:
It requires passwords so I can't.
Wait, how is that going to change when it's official?
It won't, but I don't always feel like waiting half an hour while my parents are doing other things, especially not for a beta.
Offline
bharvey wrote:
14God wrote:
[censored] is superior to [censored].
Ah, no, let's not have another flame war!
Argh! You extinguished it before I could reply!
Just kidding. I'm working on not arguing for the sake of arguing.
Offline