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

#2526 2012-01-11 06:10:53

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

Re: ITopic: Welcome to your local block library!

Download and import, like sprites or costumes? I think Mathwizz made one once, I'll see if I can still find it. I was using it to create a project that could install and update itself from the internet.

Right: Mathwizz has a "add costume from online image[] " block as block 54 in the files section of the Panther blocks.

EDIT: It also works for sounds. I can't find the sprite importer, though, I'm afraid

Last edited by sparks (2012-01-11 06:35:35)


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

Offline

 

#2527 2012-01-11 09:36:32

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

Download and import, like sprites or costumes? I think Mathwizz made one once, I'll see if I can still find it. I was using it to create a project that could install and update itself from the internet.

Right: Mathwizz has a "add costume from online image[] " block as block 54 in the files section of the Panther blocks.

EDIT: It also works for sounds. I can't find the sprite importer, though, I'm afraid

That was nXIII.  tongue


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#2528 2012-01-11 20:56:28

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: ITopic: Welcome to your local block library!

The "When %w is true" block doesn't work, even with the improved code.
Reason?  No "OffscreenWorldMorph->processWhenConditions"
Absolutely nothing like it there.


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#2529 2012-01-11 21:20:36

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: ITopic: Welcome to your local block library!

SJRCS_011 wrote:

The "When %w is true" block doesn't work, even with the improved code.
Reason?  No "OffscreenWorldMorph->processWhenConditions"
Absolutely nothing like it there.

i tried that block before... it worked for me


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#2530 2012-01-12 07:45:46

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: ITopic: Welcome to your local block library!

nathanprocks wrote:

SJRCS_011 wrote:

The "When %w is true" block doesn't work, even with the improved code.
Reason?  No "OffscreenWorldMorph->processWhenConditions"
Absolutely nothing like it there.

i tried that block before... it worked for me

Are you using source code or normal program?


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#2531 2012-01-13 07:18:24

YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 100+

Re: ITopic: Welcome to your local block library!

Took me a while, I know, but I've updated the first post and the library signature to link to Rookwood101's excellent Antidote plugin  smile  ~~Sparks


http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png

Offline

 

#2532 2012-01-13 11:16:25

plb36
Scratcher
Registered: 2011-10-16
Posts: 100+

Re: ITopic: Welcome to your local block library!

Where do you put the code for control blocks????? I'm trying to make the close scratch block but I cant find anything related to control on  the instance side. Someone please reply!  yikes


http://i1094.photobucket.com/albums/i456/plb36/myforumssig.png

Offline

 

#2533 2012-01-13 11:56:18

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: ITopic: Welcome to your local block library!

You put control blocks in the Other Ops.

Why is the code for "make _ draggable" set the value isDraggable to false and not true?

Offline

 

#2534 2012-01-13 14:13:12

plb36
Scratcher
Registered: 2011-10-16
Posts: 100+

Re: ITopic: Welcome to your local block library!

rdococ wrote:

You put control blocks in the Other Ops.

Why is the code for "make _ draggable" set the value isDraggable to false and not true?

Thanks for the help! I don't know the answer to your question...


http://i1094.photobucket.com/albums/i456/plb36/myforumssig.png

Offline

 

#2535 2012-01-14 10:11:44

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

Re: ITopic: Welcome to your local block library!

Here are 2 stretch blocks:

('set stretch to %n' #n #setStretchTo: 100) ('change stretch by %n' #- #changeStretchBy: 10)

No code required. This is for scratch-looks.


Marzipan11 must learn to not spoil

Offline

 

#2536 2012-01-15 10:38:42

SeptimusHeap
Scratcher
Registered: 2010-02-01
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I mean download and import a project.


http://i46.tinypic.com/dw7zft.png

Offline

 

#2537 2012-01-16 10:29:29

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

rdococ wrote:

Why is the code for "make _ draggable" set the value isDraggable to false and not true?

Looks like there was a typo.  I'll fix that when I get a chance.

EDIT:  Fixed.

Last edited by Greenatic (2012-01-16 19:26:38)

Offline

 

#2538 2012-01-26 16:45:18

spiekes
Scratcher
Registered: 2009-06-15
Posts: 2

Re: ITopic: Welcome to your local block library!

Is there a way to check which key of a (USB) MIDI piano is pressed ?

Offline

 

#2539 2012-01-28 07:12:04

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: ITopic: Welcome to your local block library!

i can't find anything because this thread relies too much on images! all i get is a load of urls, so I have to click on all of them to see what they mean. I know the images were banned, but could someone replace the images with the new blocks? Non of the tutorials work because of this.


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#2540 2012-01-28 09:38:36

danwoodski
Scratcher
Registered: 2009-12-23
Posts: 100+

Re: ITopic: Welcome to your local block library!

Use the link on the first post to get the images back.
They should replace the images with the new forum blocks though...it would probably run much faster!


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://dl.dropbox.com/u/12506914/Pics/p2e-2.png&link2=http://dl.dropbox.com/u/12506914/Pics/ms.png&link3=http://dl.dropbox.com/u/12506914/Pics/block%20lib.png
Starting to move on to other languages, but I'll still be around from time to time  smile

Offline

 

#2541 2012-01-28 13:50:00

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

Re: ITopic: Welcome to your local block library!

I would say replacing the blocks we have with the new type is a good idea, except that as far as I know, it doesn't let you write your own block names, only deals with existing ones.


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

Offline

 

#2542 2012-01-28 15:13:16

Zeusking19
Scratcher
Registered: 2011-07-10
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

I would say replacing the blocks we have with the new type is a good idea, except that as far as I know, it doesn't let you write your own block names, only deals with existing ones.


broadcast clicked

It allows that kind of block...

Shout [YAZOO!] for (3) secs

Last edited by Zeusking19 (2012-01-28 15:14:07)


http://i49.tinypic.com/2w7e1jm.pnghttp://dragcave.net/image/eFGFz.gifhttp://dragcave.net/image/9hE5q.gif

Offline

 

#2543 2012-01-28 16:23:28

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

Re: ITopic: Welcome to your local block library!

yeah, I was just experimenting
and the main problem
is that they turn a [default v] [red]


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

Offline

 

#2544 2012-01-29 17:06:59

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Not sure if I've shared this one already, but:

('%S is playing?' #b #IsPlaying:)

Code:

IsPlaying: t1 
| t2 |
    t2 _ self soundNamed: t1 ifAbsent: [^ self].
    ^ t2 isPlaying

Also: (I know this one hasn't been shared)

('when %S stopped play %S' #- #After:Play:)

Code:

After: t1 Play: t2
| t3 |
t3 _ self soundNamed: t1 ifAbsent: [^ self].
[t3 isPlaying] whileTrue.
self playSound: t2

Last edited by Greenatic (2012-01-29 17:18:18)

Offline

 

#2545 2012-02-07 17:25:25

Zparx
Scratcher
Registered: 2011-03-23
Posts: 500+

Re: ITopic: Welcome to your local block library!

Oh goodness, I hate sounding new at things, but the fact of the matter is that I am, in fact, new. How in the world do I install custom blocks into my project? I know how to shift click the "R"  but that's about all I know and the references are beyond my comprehension. Please help? Thanks.

- Zparx


http://images3.wikia.nocookie.net/__cb20101119183412/halo/images/4/43/Hero2.png
^ My rank on Halo: Reach :3

Offline

 

#2546 2012-02-07 17:35:57

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Zparx wrote:

Oh goodness, I hate sounding new at things, but the fact of the matter is that I am, in fact, new. How in the world do I install custom blocks into my project? I know how to shift click the "R"  but that's about all I know and the references are beyond my comprehension. Please help? Thanks.

- Zparx

OK, what's the extent of what you know?  Do you know how to...

1.  ...open the browser?
2.  ...navigate the browser?
3.  ...save changes in the browser?
4.  ...save the image file?

Offline

 

#2547 2012-02-07 18:11:30

Zparx
Scratcher
Registered: 2011-03-23
Posts: 500+

Re: ITopic: Welcome to your local block library!

Greenatic wrote:

OK, what's the extent of what you know?  Do you know how to...

1.  ...open the browser?
2.  ...navigate the browser?
3.  ...save changes in the browser?
4.  ...save the image file?

It's okay, I jogged my memory and figured everything out. I probably should have done that before asking for help, lol. Thank you (:

** EDIT: When I uploaded the project to test out the new code, it did not work.
I installed codes for new buttons. Shift, control, etc. I implemented the control key in my project and it works when pressed to execute commands offline, but not online, could this be because I didn't "save the image file", like you mentioned above? Please help lol

*** I'm getting an error message that says scratch cannot locate SqueakV2.sources or Scratch.changes. Are those files downloaded seperately from the scratch installation?

Last edited by Zparx (2012-02-07 18:28:47)


http://images3.wikia.nocookie.net/__cb20101119183412/halo/images/4/43/Hero2.png
^ My rank on Halo: Reach :3

Offline

 

#2548 2012-02-07 18:33:18

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Zparx wrote:

Greenatic wrote:

OK, what's the extent of what you know?  Do you know how to...

1.  ...open the browser?
2.  ...navigate the browser?
3.  ...save changes in the browser?
4.  ...save the image file?

It's okay, I jogged my memory and figured everything out. I probably should have done that before asking for help, lol. Thank you (:

** EDIT: When I uploaded the project to test out the new code, it did not work.
I installed codes for new buttons. Shift, control, etc. I implemented the control key in my project and it works when pressed to execute commands offline, but not online, could this be because I didn't "save the image file", like you mentioned above? Please help lol

*** I'm getting an error message that says scratch cannot locate SqueakV2.sources or Scratch.changes. Are those files downloaded seperately from the scratch installation?

1.  Modified projects won't work online (with a few exceptions, such as the stretch blocks in the Java player and cloning in the Flash Player).

2.  That error is caused if you don't save the image file.  Go in, save it, and it should work.   smile

Last edited by Greenatic (2012-02-07 18:33:34)

Offline

 

#2549 2012-02-07 18:38:13

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Zparx wrote:

*** I'm getting an error message that says scratch cannot locate SqueakV2.sources or Scratch.changes. Are those files downloaded seperately from the scratch installation?

You can download those files with the Scratch Source code here. The 'Scratch.changes' file stores changes to the image; with it, you can track changes and, instead of using the decompiled methods, you can see the original source (this allows you to see the original indentation and temporary variable names). The 'SqueakV2.sources' file stores Squeak's method sources.


nXIII

Offline

 

#2550 2012-02-07 18:42:49

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: ITopic: Welcome to your local block library!

nXIII wrote:

Zparx wrote:

*** I'm getting an error message that says scratch cannot locate SqueakV2.sources or Scratch.changes. Are those files downloaded seperately from the scratch installation?

You can download those files with the Scratch Source code here. The 'Scratch.changes' file stores changes to the image; with it, you can track changes and, instead of using the decompiled methods, you can see the original source (this allows you to see the original indentation and temporary variable names). The 'SqueakV2.sources' file stores Squeak's method sources.

...Or they could just "save image for end user".   tongue

Offline

 

Board footer