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

#1226 2010-10-21 11:38:28

kinker
Scratcher
Registered: 2010-08-01
Posts: 100+

Re: Cool custom blocks in Scratch

zorket wrote:

kinker wrote:

The hide list block
_____________________________________________________
block spec:

Code:

('hide list %L' #- #hideList: 'list')

no code
And there u have it!

That didn't work for me.

I was gonna give the method but my dad got rid of Zatch  sad  UPDATE I now have Zatch back!

Last edited by kinker (2010-10-30 10:04:59)


Put in the weirdness: http://i54.tinypic.com/zl6fph.pnghttp://img821.imageshack.us/i/gobanim2.gif/kinker style! [url]http://internetometer.com/image/16724.png[/url]♬♫ 92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature. ♫♪

Offline

 

#1227 2010-10-21 18:13:41

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

Re: Cool custom blocks in Scratch

Hey LS97? I want a little help on types of blocks. To see what I mean and where to discuss, look Here.
Please help!


Marzipan11 must learn to not spoil

Offline

 

#1228 2010-10-23 08:31:35

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

Re: Cool custom blocks in Scratch

I'm 85% an an expert on blocks. There are just a lot of blocks I have, and i'm wondering how to get it. This would be in the operators category.

Probably unfinished blockspec:
('%n percent chance of: else:' #c #chance:else)

And no code. I'll let you know if I find a connection with blocks though!


Marzipan11 must learn to not spoil

Offline

 

#1229 2010-10-23 08:53:53

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

zorket wrote:

I'm 85% an an expert on blocks. There are just a lot of blocks I have, and i'm wondering how to get it. This would be in the operators category.

Probably unfinished blockspec:
('%n percent chance of: else:' #c #chance:else)

And no code. I'll let you know if I find a connection with blocks though!

that block can be avoided with a few more steps in simple scratch  smile
[blocks]
<if> <( <pick random( 0 )to( 100 <>> 100 - whatever percent here )>
<else>
<end>
[/blocks]

hope it helps!

Offline

 

#1230 2010-10-23 09:43:42

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

Re: Cool custom blocks in Scratch

LS97 wrote:

zorket wrote:

I'm 85% an an expert on blocks. There are just a lot of blocks I have, and i'm wondering how to get it. This would be in the operators category.

Probably unfinished blockspec:
('%n percent chance of: else:' #c #chance:else)

And no code. I'll let you know if I find a connection with blocks though!

that block can be avoided with a few more steps in simple scratch  smile
[blocks]
<if> <( <pick random( 0 )to( 100 <>> 100 - whatever percent here )>
<else>
<end>
[/blocks]

hope it helps!

That script should still help find the code.  wink


Marzipan11 must learn to not spoil

Offline

 

#1231 2010-10-24 03:06:31

pen13
Scratcher
Registered: 2010-08-27
Posts: 100+

Re: Cool custom blocks in Scratch

\<pick random(  )to( pressed?>


http://womrealms.com/char.php?nomimg1:3ri855a
pen13 http://blocks.scratchr.org/API.php?user=pen13&amp;action=onlineStatus green= online gray=offline

Offline

 

#1232 2010-10-24 11:18:39

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

Re: Cool custom blocks in Scratch

^ Spam!


You can now reach me on Twitter @johnnydean1_

Offline

 

#1233 2010-10-24 13:01:01

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

Re: Cool custom blocks in Scratch

johnnydean1 wrote:

^ Spam!

^ Spam!


Marzipan11 must learn to not spoil

Offline

 

#1234 2010-10-24 14:04:44

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

Re: Cool custom blocks in Scratch

Actually, there are only 37,564,234,323,234,754,567,467,356 digits of pi before it repeats. Amazing!


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

Offline

 

#1235 2010-10-25 11:09:06

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

bbbeb wrote:

Actually, there are only 37,564,234,323,234,754,567,467,356 digits of pi before it repeats. Amazing!

you're serious? they got Pi to repeat?!?!?!?
celebration...!...!...!...!...!...!...!...!

/random

Offline

 

#1236 2010-10-25 11:11:54

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

Re: Cool custom blocks in Scratch

^ Can you give a link backing it up?


You can now reach me on Twitter @johnnydean1_

Offline

 

#1237 2010-10-25 11:14:07

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

johnnydean1 wrote:

^ Can you give a link backing it up?

yeah wanted to ask that. i'll check on wikipedia right now. it's better than nothing...  big_smile

edit wikipedia still states that Pi is irrational  sad

Last edited by LS97 (2010-10-25 11:18:02)

Offline

 

#1238 2010-10-25 16:31:52

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

Re: Cool custom blocks in Scratch

big_smile  ill get it now....


EDIT: forgot the link.  sad


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

Offline

 

#1239 2010-10-25 17:53:38

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

Re: Cool custom blocks in Scratch

bbbeb wrote:

Actually, there are only 37,564,234,323,234,754,567,467,356 digits of pi before it repeats. Amazing!

No. Pi is irrational. See here for proof.


nXIII

Offline

 

#1240 2010-10-25 20:37:36

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

Re: Cool custom blocks in Scratch

Where's i find that URL from then....


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

Offline

 

#1241 2010-10-29 22:43:11

pen13
Scratcher
Registered: 2010-08-27
Posts: 100+

Re: Cool custom blocks in Scratch

the < cam x>  and < cam y> block


http://womrealms.com/char.php?nomimg1:3ri855a
pen13 http://blocks.scratchr.org/API.php?user=pen13&amp;action=onlineStatus green= online gray=offline

Offline

 

#1242 2010-10-29 22:55:29

pen13
Scratcher
Registered: 2010-08-27
Posts: 100+

Re: Cool custom blocks in Scratch

i meant this  < set cam x to ( ) >  < set cam y to ( ) > and its users 3d  can some one make me it


http://womrealms.com/char.php?nomimg1:3ri855a
pen13 http://blocks.scratchr.org/API.php?user=pen13&amp;action=onlineStatus green= online gray=offline

Offline

 

#1243 2010-10-30 10:07:29

kinker
Scratcher
Registered: 2010-08-01
Posts: 100+

Re: Cool custom blocks in Scratch

kinker wrote:

zorket wrote:

kinker wrote:

The hide list block
_____________________________________________________
block spec:

Code:

('hide list %L' #- #hideList: 'list')

no code
And there u have it!

That didn't work for me.

I was gonna give the method but my dad got rid of Zatch  sad  UPDATE I now have Zatch back!

code:

Code:

hideList: t1 
    | t2 |
    self showOrHideList: t1 show: false.
    t2 _ self ownerThatIsA: ScratchStageMorph.
    t2 ~= self ifTrue: [t2 showOrHideList: t1 show: false]

Put in the weirdness: http://i54.tinypic.com/zl6fph.pnghttp://img821.imageshack.us/i/gobanim2.gif/kinker style! [url]http://internetometer.com/image/16724.png[/url]♬♫ 92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature. ♫♪

Offline

 

#1244 2010-10-30 10:39:01

bdn7
Scratcher
Registered: 2010-07-10
Posts: 100+

Re: Cool custom blocks in Scratch

LS97 wrote:

Aidan wrote:

I have another problem. How do I 'save' the changes?

that's something i didnt include in my tutorial, thanks for reminding me!
Shift-click the R again, and click 'save image for end-user'. then click yes.

I did this and Scratch froze on me. I could quit it the regular way, so a had to force quit it. After I tried again, the exact same thing happened.


http://i.imgur.com/Q7PiV.png
That's right. My text is BLUE.

Offline

 

#1245 2010-10-30 14:09:21

pen13
Scratcher
Registered: 2010-08-27
Posts: 100+

Re: Cool custom blocks in Scratch

bdn7 wrote:

LS97 wrote:

Aidan wrote:

I have another problem. How do I 'save' the changes?

that's something i didnt include in my tutorial, thanks for reminding me!
Shift-click the R again, and click 'save image for end-user'. then click yes.

I did this and Scratch froze on me. I could quit it the regular way, so a had to force quit it. After I tried again, the exact same thing happened.

why did not use tarsk manager on windows or what ever thig on a mac to close it


http://womrealms.com/char.php?nomimg1:3ri855a
pen13 http://blocks.scratchr.org/API.php?user=pen13&amp;action=onlineStatus green= online gray=offline

Offline

 

#1246 2010-10-30 16:58:53

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

Re: Cool custom blocks in Scratch

I would like a (random dog command) block. I have it mostly down, but doesn't work.

Blockspec:

'dog command' #r #chooseOfAndReportDogCommand

Code:

chooseOfAndReportDogCommand
| t1 |
t1 _ random 1 - 6.
t1 = 1 ifTrue: [^ 'sit.'].
t1 = 2 ifTrue: [^ 'lay down.'].
t1 = 3 ifTrue: [^ 'roll over.'].
t1 = 4 ifTrue: [^ 'shake.'].
t1 = 5 ifTrue: [^ 'dance.'].
t1 = 6 ifTrue: [^ 'play dead.'].

Problem: How do I fix the random part?

Last edited by zorket (2010-10-30 18:14:42)


Marzipan11 must learn to not spoil

Offline

 

#1247 2010-10-30 19:20:10

Marioblender
Scratcher
Registered: 2010-04-04
Posts: 31

Re: Cool custom blocks in Scratch

Maybe we can make a revised <if on edge, bounce> block with    <touching[ ]> or     <touching color[ ]>.
Then the result would be <if touching (color, edge or sprite), bounce>.

Last edited by Marioblender (2010-10-30 19:21:12)

Offline

 

#1248 2010-10-31 03:56:49

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Cool custom blocks in Scratch

kinker wrote:

code:

Code:

hideList: t1 
    | t2 |
    self showOrHideList: t1 show: false.
    t2 _ self ownerThatIsA: ScratchStageMorph.
    t2 ~= self ifTrue: [t2 showOrHideList: t1 show: false]

i dont think that's the appropriate code, you missed one bit. (you obviously took all of the code from nXIII and didnt even look at it...  hmm  )

Offline

 

#1249 2010-10-31 08:13:21

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

Re: Cool custom blocks in Scratch

zorket wrote:

I would like a (random dog command) block. I have it mostly down, but doesn't work.

Blockspec:

'dog command' #r #chooseOfAndReportDogCommand

Code:

chooseOfAndReportDogCommand
| t1 |
t1 _ random 1 - 6.
t1 = 1 ifTrue: [^ 'sit.'].
t1 = 2 ifTrue: [^ 'lay down.'].
t1 = 3 ifTrue: [^ 'roll over.'].
t1 = 4 ifTrue: [^ 'shake.'].
t1 = 5 ifTrue: [^ 'dance.'].
t1 = 6 ifTrue: [^ 'play dead.'].

Problem: How do I fix the random part?

self randomFrom: 1 to: 6, I think but I haven't got Scratch open so I can't be sure.


/* No comment */

Offline

 

#1250 2010-11-01 08:42:23

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

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

zorket wrote:

I would like a (random dog command) block. I have it mostly down, but doesn't work.

Blockspec:

'dog command' #r #chooseOfAndReportDogCommand

Code:

chooseOfAndReportDogCommand
| t1 |
t1 _ random 1 - 6.
t1 = 1 ifTrue: [^ 'sit.'].
t1 = 2 ifTrue: [^ 'lay down.'].
t1 = 3 ifTrue: [^ 'roll over.'].
t1 = 4 ifTrue: [^ 'shake.'].
t1 = 5 ifTrue: [^ 'dance.'].
t1 = 6 ifTrue: [^ 'play dead.'].

Problem: How do I fix the random part?

self randomFrom: 1 to: 6, I think but I haven't got Scratch open so I can't be sure.

We can gain more codes by opening squeak. In the pick random code where I just checked, contains something else.


Marzipan11 must learn to not spoil

Offline

 

Board footer