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

#3151 2012-10-23 10:50:49

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

roijac wrote:

mythbusteranimator wrote:

dvd4 wrote:


No,It doesn't.

But of you used the "report []" block it would.

Ah,OK.

http://i.imgur.com/SWXVa.gif

I just tested it on my own BYOB program the first time.

what about

report ((number) * (number))

Hm. I always seem to do things the hard way.  lol
You should have seen the one I did before my current example. I totally failed.  tongue


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3152 2012-10-23 12:12:52

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I have one more:
http://i.imgur.com/q38qL.gif

Last edited by mythbusteranimator (2012-10-23 12:33:41)


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3153 2012-10-23 15:52:30

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Would it be possible to get the official cloud variable block before Scratch 2.0 comes out? If not, could someone make an unofficial one?


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#3154 2012-10-23 17:38:20

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

elfin8er wrote:

Would it be possible to get the official cloud variable block before Scratch 2.0 comes out? If not, could someone make an unofficial one?

What do you mean?  For Squeak?

Offline

 

#3155 2012-10-23 17:54:27

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

elfin8er wrote:

Would it be possible to get the official cloud variable block before Scratch 2.0 comes out? If not, could someone make an unofficial one?

What do you mean?  For Squeak?

Mmm hmm. That way we can get a heard start on cloud programming. Is it possible?


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#3156 2012-10-23 17:55:08

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

elfin8er wrote:

Greenatic wrote:

elfin8er wrote:

Would it be possible to get the official cloud variable block before Scratch 2.0 comes out? If not, could someone make an unofficial one?

What do you mean?  For Squeak?

Mmm hmm. That way we can get a heard start on cloud programming. Is it possible?

Well, I know that global variables are hidden away in Scriptable Scratch Morphs, I found them earlier today, but I don't know how to add them.


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3157 2012-10-23 18:03:41

elfin8er
Scratcher
Registered: 2012-01-15
Posts: 1000+

Re: ITopic: Welcome to your local block library!

mythbusteranimator wrote:

elfin8er wrote:

Greenatic wrote:


What do you mean?  For Squeak?

Mmm hmm. That way we can get a heard start on cloud programming. Is it possible?

Well, I know that global variables are hidden away in Scriptable Scratch Morphs, I found them earlier today, but I don't know how to add them.

I think I've seen them before too. I don't know anything about sqeak, so I don't know what to do with them, or even what they do  tongue


http://i1340.photobucket.com/albums/o723/stevetheipad/goldlittlesig.png

Offline

 

#3158 2012-10-23 22:00:10

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

elfin8er wrote:

mythbusteranimator wrote:

elfin8er wrote:


Mmm hmm. That way we can get a heard start on cloud programming. Is it possible?

Well, I know that global variables are hidden away in Scriptable Scratch Morphs, I found them earlier today, but I don't know how to add them.

I think I've seen them before too. I don't know anything about sqeak, so I don't know what to do with them, or even what they do  tongue

I'm pretty sure a "global variable" is just a variable that can be seen by the whole Scratch program--not a cloud variable.  I could be wrong, though.

Offline

 

#3159 2012-10-24 08:11:19

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic, did you see my block on Page 125 (i beive it was that page)?I tested it and it works for anything that returns a list, like in Lua  big_smile


I'm back.
Maybe.

Offline

 

#3160 2012-10-24 17:51:19

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

DigiTechs wrote:

Greenatic, did you see my block on Page 125 (i beive it was that page)?I tested it and it works for anything that returns a list, like in Lua  big_smile

I did see it.  However, BYOB blocks are not really my area of expertise, so I don't think I can be of much help.

What is Lua?

Last edited by Greenatic (2012-10-24 17:51:44)

Offline

 

#3161 2012-10-24 17:52:27

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

DigiTechs wrote:

Greenatic, did you see my block on Page 125 (i beive it was that page)?I tested it and it works for anything that returns a list, like in Lua  big_smile

I did see it.  However, BYOB blocks are not really my area of expertise, so I don't think I can be of much help.

What is Lua?

Lua is a small language, coded with C/C++. Here's the official website for it: http://www.lua.org/
EDIT: I may know now that BYOB blocks aren't your expertees, but I belived I was meaning "Can you look at it and see if you like it?", but you might not have understood it as what I intended.

Last edited by DigiTechs (2012-10-24 17:54:42)


I'm back.
Maybe.

Offline

 

#3162 2012-10-24 18:34:38

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

DigiTechs wrote:

Greenatic wrote:

DigiTechs wrote:

Greenatic, did you see my block on Page 125 (i beive it was that page)?I tested it and it works for anything that returns a list, like in Lua  big_smile

I did see it.  However, BYOB blocks are not really my area of expertise, so I don't think I can be of much help.

What is Lua?

Lua is a small language, coded with C/C++. Here's the official website for it: http://www.lua.org/
EDIT: I may know now that BYOB blocks aren't your expertees, but I belived I was meaning "Can you look at it and see if you like it?", but you might not have understood it as what I intended.

I'm not exactly sure what the block does.  Does it iterate the list?

Offline

 

#3163 2012-10-24 18:51:20

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

DigiTechs wrote:

Greenatic wrote:


I did see it.  However, BYOB blocks are not really my area of expertise, so I don't think I can be of much help.

What is Lua?

Lua is a small language, coded with C/C++. Here's the official website for it: http://www.lua.org/
EDIT: I may know now that BYOB blocks aren't your expertees, but I belived I was meaning "Can you look at it and see if you like it?", but you might not have understood it as what I intended.

I'm not exactly sure what the block does.  Does it iterate the list?

Basically, yes. The 2nd input (the list object) is the iterator function. Suppose you was writing a program in Lua for reading a file and outputting it, it would look somewhat like this:
for i in io.lines("filename") do --suppose our "filename" file had 12 lines in.
print(lines[i])
end
--[[Suggest our "filename" file's 12 lines were this:
Hi
Bye
This
Is
An
Awesome
Test
Which
Does
Somthing
Very
Awesome]]
output:
> Hi
> Bye
> This
> Is
> An
> Awesome
> Test
> Which
> Does
> Somthing
> Very
> Awesome
It's only psuedo (Is that spelled right o:?) code so it won't work.


I'm back.
Maybe.

Offline

 

#3164 2012-10-24 19:00:06

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

DigiTechs wrote:

Greenatic wrote:

DigiTechs wrote:


Lua is a small language, coded with C/C++. Here's the official website for it: http://www.lua.org/
EDIT: I may know now that BYOB blocks aren't your expertees, but I belived I was meaning "Can you look at it and see if you like it?", but you might not have understood it as what I intended.

I'm not exactly sure what the block does.  Does it iterate the list?

Basically, yes. The 2nd input (the list object) is the iterator function. Suppose you was writing a program in Lua for reading a file and outputting it, it would look somewhat like this:
for i in io.lines("filename") do --suppose our "filename" file had 12 lines in.
print(lines[i])
end
--[[Suggest our "filename" file's 12 lines were this:
Hi
Bye
This
Is
An
Awesome
Test
Which
Does
Somthing
Very
Awesome]]
output:
> Hi
> Bye
> This
> Is
> An
> Awesome
> Test
> Which
> Does
> Somthing
> Very
> Awesome
It's only psuedo (Is that spelled right o:?) code so it won't work.

Cool!  It's nice to have an iteration block; I always have wished that the Scratch Team would build in a "for each" list c-block, or something of the sort.

Offline

 

#3165 2012-10-25 06:21:12

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

DigiTechs wrote:

Greenatic wrote:


I'm not exactly sure what the block does.  Does it iterate the list?

Veeery long quote by DigiTechs cut out *snip*

Cool!  It's nice to have an iteration block; I always have wished that the Scratch Team would build in a "for each" list c-block, or something of the sort.

I wished they did too. Also, for people who are using this block - they should be noted that the 2nd input HAS TO RETURN A LIST! One way or another.


I'm back.
Maybe.

Offline

 

#3166 2012-10-25 18:21:56

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

DigiTechs wrote:

Greenatic wrote:

DigiTechs wrote:


Veeery long quote by DigiTechs cut out *snip*

Cool!  It's nice to have an iteration block; I always have wished that the Scratch Team would build in a "for each" list c-block, or something of the sort.

I wished they did too. Also, for people who are using this block - they should be noted that the 2nd input HAS TO RETURN A LIST! One way or another.

What happens if it isn't a list?  Perhaps you could add a method so that if it's one value (not a list), it will act on it (basically, operate on the item as if it were a one-item list) and not glitch...or does it work with non-list input?

Offline

 

#3167 2012-10-28 11:19:04

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

DigiTechs wrote:

Greenatic wrote:


Cool!  It's nice to have an iteration block; I always have wished that the Scratch Team would build in a "for each" list c-block, or something of the sort.

I wished they did too. Also, for people who are using this block - they should be noted that the 2nd input HAS TO RETURN A LIST! One way or another.

What happens if it isn't a list?  Perhaps you could add a method so that if it's one value (not a list), it will act on it (basically, operate on the item as if it were a one-item list) and not glitch...or does it work with non-list input?

The input for the 2nd input (the list) is a list input. But, I can do that.. I'll work on it.


I'm back.
Maybe.

Offline

 

#3168 2012-10-28 17:07:43

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

I swear there used to be this block in the Block Libary, but can there be a 'presentation mode' block?


I'm back.
Maybe.

Offline

 

#3169 2012-10-28 18:48:36

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

DigiTechs wrote:

I swear there used to be this block in the Block Libary, but can there be a 'presentation mode' block?

What do you mean?  A stack block that switches to it?  A boolean?  A reporter?

Offline

 

#3170 2012-10-29 11:42:50

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

DigiTechs wrote:

I swear there used to be this block in the Block Libary, but can there be a 'presentation mode' block?

What do you mean?  A stack block that switches to it?  A boolean?  A reporter?

Well, a boolean would be helpful too - so two blocks:
"Switch to presentation mode" --normal stack block
"Is in presentation mode?" --boolean


I'm back.
Maybe.

Offline

 

#3171 2012-10-29 12:26:35

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: ITopic: Welcome to your local block library!

mythbusteranimator wrote:

I have one more:
http://i.imgur.com/q38qL.gif

For sphere, you forgot the /3.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#3172 2012-10-29 12:57:58

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

I made this block for BYOB, for sensing.
https://raw.github.com/DigiTechs/Pictur … input2.gif
Here's it's code:
https://raw.github.com/DigiTechs/Pictur … script.gif

What it does is, it asks the user the input2, and if the answer variable from the question is equal to input then returns true.

Why isn't github an approved image host >:O

Last edited by DigiTechs (2012-10-29 12:58:05)


I'm back.
Maybe.

Offline

 

#3173 2012-10-29 13:25:46

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Where is YourLocalBlockLibrary?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3174 2012-10-29 13:38:17

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: ITopic: Welcome to your local block library!

And how do you add arrows to your block, like in the launch block in BYOB?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3175 2012-10-29 13:48:41

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: ITopic: Welcome to your local block library!

mythbusteranimator wrote:

And how do you add arrows to your block, like in the launch block in BYOB?

By pressing "Multiple inputs (value is a list of inputs)" makes an input with an arrow.


I'm back.
Maybe.

Offline

 

Board footer