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

#26 2010-05-03 03:16:02

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

Re: New Blocks Code

Ok Will add when I get some time now im busy.


You can now reach me on Twitter @johnnydean1_

Offline

 

#27 2010-05-03 12:12:01

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

Re: New Blocks Code

That is now alot of blocks. WOW


You can now reach me on Twitter @johnnydean1_

Offline

 

#28 2010-05-14 13:58:53

electrified123
Scratcher
Registered: 2009-11-22
Posts: 100+

Re: New Blocks Code

('scripts' #r #scripts) put this in blockspecs scriptablescratchmorph under sensing put in a block on the script place and click on this block it tells what block you have, the starting block only hat blocks will work

Last edited by electrified123 (2010-05-14 14:00:07)


http://i47.tinypic.com/5nrzmp.jpg check out my stuff ~ If You Really Thought i would think what you thought, than you must think i think what you thought i would think at the time you thought i was thinking what you thought

Offline

 

#29 2010-05-14 16:10:52

t-boy
Scratcher
Registered: 2008-05-15
Posts: 21

Re: New Blocks Code

i love the sound and camera blocks! but i wish you could elaborate on picture and sound part. like how to record sound or save a picture to a sprite. that could have all sorts of uses like catching photographic evidence of my nosy siblings  smile  i tried for an hour to get it to work, but i could do it.  sad   plez help somone!

Last edited by t-boy (2010-05-14 16:13:39)

Offline

 

#30 2010-05-27 15:27:51

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

Re: New Blocks Code

hey any more


You can now reach me on Twitter @johnnydean1_

Offline

 

#31 2010-06-10 17:57:34

EmperorEvil
Scratcher
Registered: 2009-02-13
Posts: 1000+

Re: New Blocks Code

Here's my code:

Code:

('Create Error' #- #doSomin)

You don't make any instance code, this block is used to get an error code to edit squeak with. Just something to think about. (The only block I can make...)


http://oi54.tinypic.com/t8ogle.jpg http://blocks.scratchr.org/API.php?user=veggieman001&action=onlineStatus

Offline

 

#32 2010-06-11 08:32:22

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: New Blocks Code

EmperorEvil wrote:

Here's my code:

Code:

('Create Error' #- #doSomin)

You don't make any instance code, this block is used to get an error code to edit squeak with. Just something to think about. (The only block I can make...)

But its much easier to do it the proper way (The dev way) Insted of creating and error...


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#33 2010-06-11 09:17:08

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

Re: New Blocks Code

t-boy wrote:

i love the sound and camera blocks! but i wish you could elaborate on picture and sound part. like how to record sound or save a picture to a sprite. that could have all sorts of uses like catching photographic evidence of my nosy siblings  smile  i tried for an hour to get it to work, but i could do it.  sad   plez help somone!

I've done that with Panther. It's light work to set up the webcam with movement detection, point it at the door and take photos when movement is detected. You should try it, I did it with my brother  tongue  www.pantherprogramming.weebly.com

Last edited by sparks (2010-06-11 09:17:28)


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

Offline

 

#34 2010-07-25 21:35:53

Twilight-Tak
Scratcher
Registered: 2010-05-15
Posts: 100+

Re: New Blocks Code

It always says: End of block expected. whatdo I do?


http://tripatlas.com/images/articles/hauntedcanadabanffdress.jpg The Windowless Hotel Episode Two!

Offline

 

#35 2010-07-26 14:05:02

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: New Blocks Code

These Blocks Are Awesome!!!


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&online=http://lemonfanatic.webs.com/ONLINE.png&offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#36 2010-07-26 14:06:18

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: New Blocks Code

*adds forum thread to bookmarks* Now I know how to make BOTH parts of a block!
(I previously only knew how to do the code.)

Last edited by HD123 (2010-07-26 14:06:54)


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&online=http://lemonfanatic.webs.com/ONLINE.png&offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#37 2010-07-26 15:09:56

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: New Blocks Code

Code:

Name of block: Export Sprite

Thanks to: HD123

Block Code:
('export this sprite' #- #exportObject)

Other Notes:
This block will export a sprite.

Last edited by HD123 (2010-07-26 20:23:50)


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&online=http://lemonfanatic.webs.com/ONLINE.png&offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#38 2010-07-26 15:24:26

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: New Blocks Code

Anybody have the "export stage" block?


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#39 2010-07-26 20:18:51

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: New Blocks Code

The code for "export stage" would be the same as the code for export sprite. (unless you want different wording) If you want it to say "export stage", just set the code to

Code:

('export stage' #- #exportObject)

Last edited by HD123 (2010-07-26 20:19:33)


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&online=http://lemonfanatic.webs.com/ONLINE.png&offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#40 2010-08-06 08:09:11

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: New Blocks Code

bump


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&online=http://lemonfanatic.webs.com/ONLINE.png&offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#41 2010-08-13 13:44:59

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

Re: New Blocks Code

check out the new block library by sparks


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

Offline

 

#42 2010-08-13 14:11:35

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

Re: New Blocks Code

You should change the clone block. use the function cloneAndSend instead. It has to be with a %e parameter which means it broadcasts the message only to the clone straight after it's created. That is useful to make it do something after it's cloned. So the block code is ('clone me with message %e' #- #cloneAndSend). The cloneAndSend method is already created in scratch.


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

 

#43 2010-08-31 14:55:41

Reese-O
Scratcher
Registered: 2010-05-11
Posts: 58

Re: New Blocks Code

Will someone post a tutorial on how to insert these codes? When you do, can you put a link on one of my projects?


My Page. = My Page click

Offline

 

#44 2010-08-31 15:25:16

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: New Blocks Code

A slight modification of nXIII's block...

Code:

allKeysPressed
    | t1 |
    t1 _ ''.
    self keyNames do: [:t2 |
        (self keyPressed: t2) ifTrue: [t1 _ t1 , t2 , ',']].
    ^ t1

/* No comment */

Offline

 

#45 2010-09-03 15:03:56

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

Re: New Blocks Code

Amazing!!!


Marzipan11 must learn to not spoil

Offline

 

#46 2010-09-06 09:31:44

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: New Blocks Code

TheSuccessor wrote:

A slight modification of nXIII's block...

Code:

allKeysPressed
    | t1 |
    t1 _ ''.
    self keyNames do: [:t2 |
        (self keyPressed: t2) ifTrue: [t1 _ t1 , t2 , ',']].
    ^ t1

NEAT


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&online=http://lemonfanatic.webs.com/ONLINE.png&offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#47 2010-09-06 12:06:01

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

Re: New Blocks Code

TheSuccessor wrote:

A slight modification of nXIII's block...

Code:

allKeysPressed
    | t1 |
    t1 _ ''.
    self keyNames do: [:t2 |
        (self keyPressed: t2) ifTrue: [t1 _ t1 , t2 , ',']].
    ^ t1

A slight modification of a slight modification of my block...  tongue

allKeysPressed
|l|l_ScratchListMorph new listName:''target:nil.self keyNames do:[:k|(self keyPressed: k)ifTrue:[l insertLine:k at:(l lineCount+1)]].^l

Look at all those bytes I saved! (it returns a list, too)

Last edited by nXIII (2010-09-06 12:07:35)


nXIII

Offline

 

#48 2010-09-06 12:22:53

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: New Blocks Code

And if your mod doesn't support list reporters...


/* No comment */

Offline

 

#49 2010-09-06 12:36:55

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

Re: New Blocks Code

TheSuccessor wrote:

And if your mod doesn't support list reporters...

Then too bad for you!


nXIII

Offline

 

#50 2010-09-06 12:45:06

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: New Blocks Code

nXIII wrote:

TheSuccessor wrote:

And if your mod doesn't support list reporters...

Then too bad for you!

Everything always seems to be too bad for me. I wonder how I survive.  sad  tongue


/* No comment */

Offline

 

Board footer