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

#76 2010-08-17 08:44:06

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to the OLD local block library!

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  smile )

well, a reporter will work as well I think.

Actually, this block DOES clone the sprite, and also reports "A scratch sprite morph()"


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#77 2010-08-17 09:06:10

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

<[] = []> works, but isn't case sensitive.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#78 2010-08-22 19:54:01

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

got a new block for BYOB control!
If, elif, elif, elif, blah blah blah.
http://i35.tinypic.com/10nvy3r.jpg
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


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#79 2010-08-23 05:30:36

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Welcome to the OLD local block library!

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)


You can now reach me on Twitter @johnnydean1_

Offline

 

#80 2010-08-23 05:58:59

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Welcome to the OLD local block library!

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

Last edited by johnnydean1 (2010-08-23 06:03:19)


You can now reach me on Twitter @johnnydean1_

Offline

 

#81 2010-08-23 08:13:05

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

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.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#82 2010-08-23 08:30:14

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

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.gif

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.


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#83 2010-08-23 08:51:02

developdood
Scratcher
Registered: 2009-04-16
Posts: 63

Re: Welcome to the OLD local block library!

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


Have a look at some of my games. I made a cool physics game called "Physics Marble Cannon" which is really cool. I let anyone remix any of my projects without permission or credit necessary.

Offline

 

#84 2010-08-23 09:02:02

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

BYOB Block If, Elif by MidnightLeopard and johnnydean1

mmmm waffles.
Okay, here's the block coding:
http://i33.tinypic.com/5was88.jpg
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:
http://i34.tinypic.com/2d18yua.jpg
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)


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#85 2010-08-23 14:40:31

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Welcome to the OLD local block library!

Amazing.  big_smile

1 more i found after experimenting with code.
(Its a scratch block)
('Press Green Flag'      -  pressGreenFlag)

pressGreenFlag
     #pressGreenFlagButton


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#86 2010-08-23 17:33:58

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to the OLD local block library!

this is all very cool! I'll post them up tomorrow  smile  I have been thinking about a blocks website of some kind for a while, it would be very cool!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#87 2010-08-23 17:35:38

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Welcome to the OLD local block library!

It would be cool!


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#88 2010-08-24 08:25:23

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

sparks wrote:

this is all very cool! I'll post them up tomorrow  smile  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)


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#89 2010-08-24 12:26:02

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

midnightleopard wrote:

sparks wrote:

this is all very cool! I'll post them up tomorrow  smile  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


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#90 2010-08-24 12:32:04

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

oh and btw, I made a new block. BYOB control. Gosh, thanks JD1 for teaching me about multiple inputs!
http://i36.tinypic.com/iv8itl.jpg


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#91 2010-08-24 12:39:00

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Welcome to the OLD local block library!

midnightleopard wrote:

oh and btw, I made a new block. BYOB control. Gosh, thanks JD1 for teaching me about multiple inputs!
http://i36.tinypic.com/iv8itl.jpg

ok  smile


You can now reach me on Twitter @johnnydean1_

Offline

 

#92 2010-08-24 12:40:53

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Welcome to the OLD local block library!

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.gif

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?


You can now reach me on Twitter @johnnydean1_

Offline

 

#93 2010-08-24 14:41:17

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Welcome to the OLD local block library!

bump
and
apparently not.  sad


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#94 2010-08-25 07:49:20

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: Welcome to the OLD local block library!

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


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#95 2010-08-25 09:10:19

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to the OLD local block library!

midnightleopard wrote:

sparks wrote:

this is all very cool! I'll post them up tomorrow  smile  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...


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#96 2010-08-25 09:39:14

zorket
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Welcome to the OLD local block library!

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!'


Marzipan11 must learn to not spoil

Offline

 

#97 2010-08-25 11:12:24

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to the OLD local block library!

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)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#98 2010-08-25 11:17:56

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Welcome to the OLD local block library!

aww i contributed 2 Scratch blocks  sad
[ontopic]
No one likes submitting Scratch blocks?


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#99 2010-08-25 11:36:34

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Welcome to the OLD local block library!

bbbeb wrote:

aww i contributed 2 Scratch blocks  sad
[ontopic]
No one likes submitting Scratch blocks?

Sorry, I went through and found them, I forgot to load them up  hmm  They're there now though  big_smile

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  tongue


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#100 2010-08-25 14:53:04

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Welcome to the OLD local block library!

Sparks add all my block shop ones  smile


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer