This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#3201 2011-05-03 17:12:13

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@bharvey
Another way to do it :

script variables <a><var>
set <a> to "kiki"
set <var> to "secret"
launch [the script [[set <var> to <a>][say <a> for <2> secs]] ] of <other guy>

Offline

 

#3202 2011-05-03 17:28:02

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

@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

 

#3203 2011-05-03 17:34:16

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

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.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#3204 2011-05-03 17:34:34

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

My school district blocks normal websites AND programs!  tongue

Yet it seems half of the budget goes to technology. Strange, because you can't do anything on the computers.  hmm

Last edited by shadow_7283 (2011-05-03 17:35:26)

Offline

 

#3205 2011-05-03 20:07:51

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Strange, because you can't do anything on the computers.  hmm

I bet you can type your papers on Word.  Isn't that what computers are for?  smile


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#3206 2011-05-03 20:08:09

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: BYOB 3 - Discussion Thread

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.


Jens Mönig

Offline

 

#3207 2011-05-03 22:22:02

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

Strange, because you can't do anything on the computers.  hmm

I bet you can type your papers on Word.  Isn't that what computers are for?  smile

If you can get past compatibility issues with Word 2003 and 2007, as well as disappearing files.  tongue

Offline

 

#3208 2011-05-03 22:23:54

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

shadow_7283 wrote:

Strange, because you can't do anything on the computers.  hmm

I bet you can type your papers on Word.  Isn't that what computers are for?  smile

Welcome to the Internet.  tongue
Anyways, what are you doing programming BYOB if computers are only for Word?  tongue

Offline

 

#3209 2011-05-04 00:20:52

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

Anyways, what are you doing programming BYOB if computers are only for Word?  tongue

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."  smile   I'm surprised it hasn't gone out of style!


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#3210 2011-05-04 00:25:51

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

scimonster wrote:

Anyways, what are you doing programming BYOB if computers are only for Word?  tongue

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."  smile   I'm surprised it hasn't gone out of style!

Who says "anyhows" anyways?  tongue

Offline

 

#3211 2011-05-04 01:09:29

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

Who says "anyhows" anyways?  tongue

Just I!  But not in a long time.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#3212 2011-05-04 01:10:48

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

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

 

#3213 2011-05-04 01:12:34

williambl
Scratcher
Registered: 2011-04-08
Posts: 100+

Re: BYOB 3 - Discussion Thread

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.  smile
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.


http://internetometer.com/imagesmall/34650.png
http://www.danasoft.com/sig/Epicnesssign.jpg

Offline

 

#3214 2011-05-04 01:22:31

williambl
Scratcher
Registered: 2011-04-08
Posts: 100+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

bharvey wrote:

shadow_7283 wrote:

Strange, because you can't do anything on the computers.  hmm

I bet you can type your papers on Word.  Isn't that what computers are for?  smile

Welcome to the Internet.  tongue
Anyways, what are you doing programming BYOB if computers are only for Word?  tongue

Me not have windows. Word windows only. I use openoffice.


http://internetometer.com/imagesmall/34650.png
http://www.danasoft.com/sig/Epicnesssign.jpg

Offline

 

#3215 2011-05-04 01:49:51

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

williambl wrote:

scimonster wrote:

bharvey wrote:


I bet you can type your papers on Word.  Isn't that what computers are for?  smile

Welcome to the Internet.  tongue
Anyways, what are you doing programming BYOB if computers are only for Word?  tongue

Me not have windows. Word windows only. I use openoffice.

Me too actually.  tongue

Offline

 

#3216 2011-05-04 03:48:53

xly
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: BYOB 3 - Discussion Thread

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

 

#3217 2011-05-04 11:24:52

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

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.


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#3218 2011-05-04 11:31:02

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

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.  sad

Offline

 

#3219 2011-05-04 17:29:28

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

williambl wrote:

scimonster wrote:

bharvey wrote:


I bet you can type your papers on Word.  Isn't that what computers are for?  smile

Welcome to the Internet.  tongue
Anyways, what are you doing programming BYOB if computers are only for Word?  tongue

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

 

#3220 2011-05-04 17:34:34

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

scimonster wrote:

It requires passwords so I can't.  sad

Wait, how is that going to change when it's official?


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#3221 2011-05-04 19:14:39

14God
Scratcher
Registered: 2008-11-14
Posts: 100+

Re: BYOB 3 - Discussion Thread

Open office is superior to word.


http://cs.berkeley.edu/~bh/sig4.png
Logic and reason have led me to atheism... but I'm stuck with the name  tongue

Offline

 

#3222 2011-05-04 20:29:33

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

14God wrote:

[censored] is superior to [censored].

Ah, no, let's not have another flame war!


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

#3223 2011-05-04 21:06:34

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BYOB 3 - Discussion Thread

bharvey wrote:

scimonster wrote:

It requires passwords so I can't.  sad

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.  tongue

Offline

 

#3224 2011-05-04 22:09:50

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: BYOB 3 - Discussion Thread

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!  tongue

Just kidding. I'm working on not arguing for the sake of arguing.  big_smile

Offline

 

#3225 2011-05-04 23:02:10

bharvey
Scratcher
Registered: 2008-08-10
Posts: 1000+

Re: BYOB 3 - Discussion Thread

shadow_7283 wrote:

Just kidding. I'm working on not arguing for the sake of arguing.

Oh, I don't know, there are arguments to be made in favor of arguing...


http://cs.berkeley.edu/~bh/sig5.png

Offline

 

Board footer