[url=http://www.mediafire.com/imgbnc.php/81af29ff74e20a9fc133ed475f7eed1a9f7132025a822945e15d9f2e2f345fb56g.jpg][img]http://www.mediafire.com/imgbnc.php/63c0f2642c2ee831ebc933fdfb5f22e6a5328715b79
e963bf0732352b2a292e36g.jpg[/img][/url]
BYOB blocks
Scratch won't obey my BBCode!
Last edited by rdococ (2010-11-27 06:44:10)
Offline
We should have a page on conventional custom menus.
i.e. %S could be convention for menu for single stepping speed, etc.
Offline
Block Addition!
The Command Error Block!
How to make it:
Based on the reporter error block by SSBBM
Also, that's a nice block ScratchReallyROCKS!
Offline
Hardmath123, I don't understand what you mean by a conventional menu? (p.s. %S is used in Scratch to create a dropdown list of all the sprites in a block)
GPG, not sure I understand the use of error blocks Oh well, I'll add then anyway!
SRR, I don't read BYOB block code very well, but isn't your block above just an [ask [what's your name?] and wait] block?
Offline
sparks wrote:
Hardmath123, I don't understand what you mean by a conventional menu? (p.s. %S is used in Scratch to create a dropdown list of all the sprites in a block)
Ok, %s then?
And it would be helpful for common menus (single stepping, common constants like π, +/-/÷/*/mod/^, etc.). The idea is so if custom menus catch on, we wouldn't waste time and space repeating the same codes.
Offline
sparks wrote:
SRR, I don't read BYOB block code very well, but isn't your block above just an [ask [what's your name?] and wait] block?
It's a reporter that reports the answer immediately rather than using an "answer" reporter.
Offline
Hardmath123 wrote:
sparks wrote:
Hardmath123, I don't understand what you mean by a conventional menu? (p.s. %S is used in Scratch to create a dropdown list of all the sprites in a block)
Ok, %s then?
And it would be helpful for common menus (single stepping, common constants like π, +/-/÷/*/mod/^, etc.). The idea is so if custom menus catch on, we wouldn't waste time and space repeating the same codes.
Sparks: oh, I get what you mean. %s represents a String argument already.
Offline
meowmeow55 wrote:
sparks wrote:
SRR, I don't read BYOB block code very well, but isn't your block above just an [ask [what's your name?] and wait] block?
It's a reporter that reports the answer immediately rather than using an "answer" reporter.
Yep. I find it WAY more useful than the current one.
Offline
i dont know if anyone has posted this yet, but here's the "go forward ( ) layers" block:
put this in scratchspritemorph under block specs:
('go forward %n layers' #- #goFwdByLayers: 1)
and put this under looks ops:
goFwdByLayers: t1 owner ifNil: [^ self]. self layer: (owner submorphs indexOf: self) - t1 truncated
hope this helps!
Offline
owetre18, I really like your blocks, mainly the drag and drop one. Great ideas!
meowmeow55 wrote:
Must be something I messed with then. I don't think I made any changes that would affect this, but whatever. So, can you or someone else download the BYOB Block Library project, put in the code in the block, and upload it to Mediafire or somewhere? I'll upload it back to my site then.
I'll do it.
EDIT: Oops, you allready did it. Oh well here it is (opens in new window, how do I fix that?). I added the new blocks.
Sparks, You added an f on the link to my new make line block. Also why haven't you added any sub-cads?
Last edited by SSBBM (2010-11-29 08:53:26)
Offline
The "add variable" block doesn't work, but this version of it that I made does:
In Block Specs:
('add variable %s' #- #addVar: 'variable)
and under variables (in instance):
addVar: t1 | t2 t3 | (t2 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [^ self beep]. t1 size = 0 ifTrue: [^ self]. t3 _ t1 asUTF8. (t2 workPane variableNameInUse: t3) ifTrue: [self beep. DialogBoxMorph warn: 'That variable name is already in use'. ^ self]. t2 workPane addVariable: t3. t2 viewerPane categoryChanged: 'variables'. self addWatcherForNewVariable: t3 withScope: t2 workPane
will you use this version?
Last edited by coupdegrace (2010-11-28 20:23:38)
Offline
sparks wrote:
%s represents a String argument already.
*sigh*
Offline
Block Request:
Draw quadrilaterial at X: Y: to X: Y:
I would like it made in Panther
Offline
sparks wrote:
SSBBM, fixed your link, no idea how that f got there, sorrty
What's a sub-cad?
Ha. I had a feeling you wouldn't know what I ment, but I was too lazy , it means sub-category. List/other is the sub-category.
johnnydean1 wrote:
Block Request:
Draw quadrilateral at X: Y: to X: Y:
I would like it made in Panther
I could make that for BYOB
Last edited by SSBBM (2010-11-29 17:35:03)
Offline
^ If you could make it in BYOB, I could change it into Panther
Offline
Ohhhh! A sub-cat not a sub-cad which is what you wrote I have not got a list or other catagory because Scratch puts it's list blocks in with the variables, as do the other two mods, and none of them have an other catagory either...
Offline
You can make a rectangle if you know 2 points, but not a quadralateral
Offline
sparks wrote:
Ohhhh! A sub-cat not a sub-cad which is what you wrote I have not got a list or other catagory because Scratch puts it's list blocks in with the variables, as do the other two mods, and none of them have an other catagory either...
Oops, typo. I can see your point, but BYOB has 10 options when making a block not 8.
Offline
SSBBM wrote:
Made it, but you can't draw a quadrilateral with two point it has to be four.
http://img230.imageshack.us/img230/6326/drawquad.gif
That what I mean but I want the inside shaded aswell.
Offline