midnightleopard wrote:
sparks wrote:
midnightleopard wrote:
Panther block:
first box:
Create squeak error
Second box:
g
third box
self duplicateNoAttach
this block couldn't have less of a point, unless you want a squeak error.thanks for sharing! ... any reason why it's a colour reporter? (theyve been taken out of 1.1 and replaced with normal variables that can reprort colours )
well, a reporter will work as well I think.
Actually, this block DOES clone the sprite, and also reports "A scratch sprite morph()"
Offline
got a new block for BYOB control!
If, elif, elif, elif, blah blah blah.
If anyone can figure out a way to do this with infinite elifs please do, maybe something like putting them inside of eachother? oh well.
PLEASE UPDATE THE LIBRARY AHHHHG
Offline
Here infinate if else
You will have to do the hat block part because I have no idea.
Variables:
Index
Done
Current
Lists:
Statments
Code
The bit I do not know
[
add all statments ( a statment is < = > ect) to statments list
add all code to code list
]
index set to 0
done set to false
repeat until < < ( (index) + 1) > length of code> or < done = true >
| index set to ( (index) + 1)
| current set to (item (index) of statments list)
| if < current >
| | set done to true
|_____________________________________________________________
if <done>
| run (item (index) of code)
|_________________________
report 0
End
Can you make it work
JD1
Last edited by johnnydean1 (2010-08-23 05:31:56)
Offline
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:
Last edited by johnnydean1 (2010-08-23 06:03:19)
Offline
johnnydean1 wrote:
Here a pic of the block:
http://a.imageshack.us/img44/5214/here.gif
Statments is a booleen true/false type list
Code is a C block type list
And what it looks like:
http://a.imageshack.us/img707/4022/proof.gif
ooh that looks hard but I'll give it a shot.
Offline
midnightleopard wrote:
johnnydean1 wrote:
Here a pic of the block:
http://a.imageshack.us/img44/5214/here.gif
Statments is a booleen true/false type list
Code is a C block type list
And what it looks like:
http://a.imageshack.us/img707/4022/proof.gifooh that looks hard but I'll give it a shot.
YES! I finished it! Works like a charm! I'll post it after breakfast.
Offline
the cloneAndSend function is better than duplicateNoAttach. It is better if it deletes clones when it's stopped and it is used with %e to broadcast something to only the clone
Offline
BYOB Block If, Elif by MidnightLeopard and johnnydean1
mmmm waffles.
Okay, here's the block coding:
The first input is a boolean (T/F) input and the second is a C Shape input.
Make sure that for the inputs, set them to Multiple Inputs.
And here's the spec:
Feel free to make any improvements.
Hey! This thread gives me an idea! A website similar to Scratch Resources made for sharing byob blocks!
*goes to practice php
Last edited by midnightleopard (2010-08-23 09:08:27)
Offline
Amazing.
1 more i found after experimenting with code.
(Its a scratch block)
('Press Green Flag' - pressGreenFlag)
pressGreenFlag
#pressGreenFlagButton
Offline
sparks wrote:
this is all very cool! I'll post them up tomorrow I have been thinking about a blocks website of some kind for a while, it would be very cool!
Want to team up? I stink at php but pwn at CSS and HTML! We could make BYOB Resources! Anyone else could help as well if they want! I have computers I could use as a server! We could make a development thread!
Last edited by midnightleopard (2010-08-24 08:43:56)
Offline
midnightleopard wrote:
sparks wrote:
this is all very cool! I'll post them up tomorrow I have been thinking about a blocks website of some kind for a while, it would be very cool!
Want to team up? I stink at php but pwn at CSS and HTML! We could make BYOB Resources! Anyone else could help as well if they want! I have computers I could use as a server! We could make a development thread!
bump
Offline
oh and btw, I made a new block. BYOB control. Gosh, thanks JD1 for teaching me about multiple inputs!
Offline
midnightleopard wrote:
oh and btw, I made a new block. BYOB control. Gosh, thanks JD1 for teaching me about multiple inputs!
ok
Offline
midnightleopard wrote:
midnightleopard wrote:
johnnydean1 wrote:
Here a pic of the block:
http://a.imageshack.us/img44/5214/here.gif
Statments is a booleen true/false type list
Code is a C block type list
And what it looks like:
http://a.imageshack.us/img707/4022/proof.gifooh that looks hard but I'll give it a shot.
YES! I finished it! Works like a charm! I'll post it after breakfast.
I dont get you my one was a working block?
Offline
johnnydean1 wrote:
midnightleopard wrote:
midnightleopard wrote:
ooh that looks hard but I'll give it a shot.YES! I finished it! Works like a charm! I'll post it after breakfast.
I dont get you my one was a working block?
yes
Offline
midnightleopard wrote:
sparks wrote:
this is all very cool! I'll post them up tomorrow I have been thinking about a blocks website of some kind for a while, it would be very cool!
Want to team up? I stink at php but pwn at CSS and HTML! We could make BYOB Resources! Anyone else could help as well if they want! I have computers I could use as a server! We could make a development thread!
Sorry, I was away all yesterday... I would love to team up with you on this, though I might wait until nXIII gets back as Panther currently has "blockshop". I think that could easily be adapted to hold blocks for scratch and BYOB although neither of those have a way to download a working block into a project...
Offline
The (get (time)) block!
Blockspec: ('get %s' #r #getTime: 'date')
Code:
getTime: t1
t1 = 'date' ifTrue: [^ Date today].
t1 = 'short date' ifTrue: [^ Date today printFormat: #(1 2 3 $- 2 2 )].
t1 = 'time' ifTrue: [^ Time now].
t1 = 'seconds' ifTrue: [^ Time now seconds].
t1 = 'minutes' ifTrue: [^ Time now minutes].
t1 = 'hours' ifTrue: [^ Time now hours].
t1 = 'day' ifTrue: [^ Date today weekday].
t1 = 'help' ifTrue: [^ 'type date, short date, time, seconds, minutes, day, hours'].
^ 'Error!'
Offline
added two more ^.^ thanks for all the submissions, this is going very well!
coolstuff wrote:
And we'll ITopic this if it gets enough blocks in here - so keep things coming!
Enough yet? here's our stats as they currently stand:
Scratch blocks: 7
BYOB blocks: 15
Panther blocks: 9
total blocks: 31
______________________________________________________________________
top Scratch block contributor: zortek & Sparks 2 blocks each.
top BYOB block contributor: PlayWithFire 8 blocks.
top Panther block contributor: Sparks & nXIII 2 blocks each.
total contributors: 9
Overall top contributor: PlayWithFire
Last edited by sparks (2010-08-25 11:34:56)
Offline
bbbeb wrote:
aww i contributed 2 Scratch blocks
[ontopic]
No one likes submitting Scratch blocks?
Sorry, I went through and found them, I forgot to load them up They're there now though
I think it's the case that Scratch blocks are the hardest to code because it involves writing code into the browser, wheras BYOB blocks are easy to code because that's what BYOB is designed to do, rather than people just being mean and secretive about their scratch block code
Offline
Sparks add all my block shop ones
Offline