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.
You should have seen the one I did before my current example. I totally failed.
Offline
Offline
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
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?
Offline
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.
Offline
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
Offline
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
![]()
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
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
![]()
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
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
![]()
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)
Offline
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
![]()
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
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.
Offline
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
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.
Offline
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
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.
Offline
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
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
Offline
mythbusteranimator wrote:
I have one more:
http://i.imgur.com/q38qL.gif
For sphere, you forgot the /3.
Offline
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)
Offline
And how do you add arrows to your block, like in the launch block in BYOB?
Offline
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.
Offline