bharvey wrote:
This is much the same issue, actually. BYOB doesn't know what value your reporter will report. It might happen to be TRUE or FALSE, in which case you can use that reporter meaningfully in a Predicate slot. But on some other occasion it might return 17. So it's syntactically legal to put any custom reporter in a Predicate slot, but when the program actually runs, if the reporter doesn't report TRUE or FALSE, eventually some primitive block such as IF will signal an error.
I see. But this variable DID report true or false, and I still received an error when I ran the script.
Why can't we just make BYOB3 identical to JavaScript? XD
1500 post on this topic!!!!!!!!!!!!!!
Last edited by shadow_7283 (2010-08-22 14:12:27)
Offline
And the bug disappears into the shadows (no pun intended)...
Offline
I made 3 new blocks in BYOB 3.0 which act the same as the create a block feature!
These can be used to create blocks in scripts, and any sprite (or even the stage) can access the block! Tip: Use broadcast for the 'run 'block' of 'sprite' for custom blocks made using my 3 blocks.
Offline
Hey I made a block
johnnydean1 wrote:
Here a pic of the block:
Statments is a booleen true/false type list
Code is a C block type list
And what it looks like:
Will it help any of you BYOBers
Last edited by johnnydean1 (2010-08-23 06:04:44)
Offline
rdococ wrote:
I made 3 new blocks in BYOB 3.0 which act the same as the create a block feature!
Hmm, I tried clicking the link in the message but I don't see a block, only some text saying "check out this block."
Offline
Dominic1 wrote:
I have byob3 (Not alpha or beta) and one example project had nested sprites. How do you nest sprites?
Grab the "child" sprite in the sprite corral down in the corner of the screen, and drag it to the "parent" sprite on the stage.
The file "BYOB 2.0.pdf" in the distribution folder documents nested sprites.
Offline
johnnydean1 wrote:
Hey I made a block
This is kind of like the SWITCH block in tools.ypr, except that it doesn't take a value-to-test input. I think you should use the trick that SWITCH uses (thanks to nXIII) to allow grouping each Boolean value with the corresponding code to evaluate.
Offline
bharvey wrote:
Dominic1 wrote:
I have byob3 (Not alpha or beta) and one example project had nested sprites. How do you nest sprites?
Grab the "child" sprite in the sprite corral down in the corner of the screen, and drag it to the "parent" sprite on the stage.
The file "BYOB 2.0.pdf" in the distribution folder documents nested sprites.
Ooh, "sprite corral", that's a new one
Offline
bharvey wrote:
Lucario621 wrote:
Ooh, "sprite corral", that's a new one
Does it have an official name?
No, I don't think so... in general I could call it the "sprites area" or something, but I like your idea better
Offline
Lucario621 wrote:
bharvey wrote:
Lucario621 wrote:
Ooh, "sprite corral", that's a new one
Does it have an official name?
No, I don't think so... in general I could call it the "sprites area" or something, but I like your idea better
I thought it was called the 'Sprite Pannel'
Offline
It's called the 'Library'.
Offline
bharvey wrote:
Dominic1 wrote:
I have byob3 (Not alpha or beta) and one example project had nested sprites. How do you nest sprites?
Grab the "child" sprite in the sprite corral down in the corner of the screen, and drag it to the "parent" sprite on the stage.
The file "BYOB 2.0.pdf" in the distribution folder documents nested sprites.
Since when have we had nested sprites?!?!
I had no idea!
Offline
rubiks_cube_guy238 wrote:
It's called the 'Library'.
No, I don't think so
Actually, I did a little researching, and according to the Scratch Reference Guide (http://info.scratch.mit.edu/Support/Reference_Guide_1.4), if you scroll down to Scratch Interfact, you can see it's called the Sprite List.
Offline
bharvey wrote:
shadow_7283 wrote:
Since when have we had nested sprites?!?!
Since BYOB 2!
I bet you don't know about the make-me-breakfast feature either.
Offline
Lucario621 wrote:
rubiks_cube_guy238 wrote:
It's called the 'Library'.
No, I don't think so
Actually, I did a little researching, and according to the Scratch Reference Guide (http://info.scratch.mit.edu/Support/Reference_Guide_1.4), if you scroll down to Scratch Interfact, you can see it's called the Sprite List.
Yes, but the class is called ScratchLibraryMorph, not ScratchSpriteListMorph.
bharvey wrote:
shadow_7283 wrote:
Since when have we had nested sprites?!?!
Since BYOB 2!
I bet you don't know about the make-me-breakfast feature either.
You should add a make-me-lunch and make-a-donut feature. LOL.
Last edited by rubiks_cube_guy238 (2010-08-24 07:10:20)
Offline
bharvey wrote:
shadow_7283 wrote:
Since when have we had nested sprites?!?!
Since BYOB 2!
I bet you don't know about the make-me-breakfast feature either.
eat (call [make bagel] with inputs ((list [type],[filling],[extras],[toasted]) => (list [sesame],[plain cream cheese],(list <>),<true>))) until done
BYOB text evaluator anyone?
Offline
I have a suggestion for 3.1!!! How about the option to choose wether or not a variable, created w/in a block can be global.
Offline
That's a good idea. It's impossible right now to have blocks dependent on each other, which I think is pretty important.
Offline
shadow_7283 wrote:
It's impossible right now to have blocks dependent on each other, which I think is pretty important.
No it's not! One can report a value to another; one can LAUNCH another; one can set the value of an already-existing global variable (although that's the least elegant way, imho). It might still be a good suggestion, but not for that reason, I think.
Offline