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

#1026 2010-09-04 15:28:41

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

Re: Cool custom blocks in Scratch

LS97 wrote:

Billybob-Mario wrote:

nXIII wrote:

Why not just make reporters which report costumes?

I already have. BYOB made that easy. Now I need to have it add these to costumes. I'll post a secret 1.1 beta to help explain. http://dl.dropbox.com/u/6509165/Slash%2 … Beta.image Look at blocks such as 'self'.

i had a look at Slash 1.1 Beta and it's got loads of blocks copied from Bingo. too bad mostof those you added dont work  lol
but please code the cursor one yourself.  mad

I know! Look at all the ones from Panther!  mad

Last edited by nXIII (2010-09-04 15:29:47)


nXIII

Offline

 

#1027 2010-09-04 15:35:08

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

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

Code:

showMenu: t1 
    | t2 t3 t4 t5 t6 t7 |
    t2 _ self listNamed: t1 ifNone: [^ ''].
    t3 _ self lineCountOfList: t2.
    t4 _ 1.
    t5 _ CustomMenu new.
    t3
        timesRepeat: 
            [t6 _ self getLine: t4 ofList: t2.
            t5 add: t6 asString action: t6.
            t4 _ t4 + 1].
    t5 localize.
    t7 _ t5 startUp.
    ^ t7

This takes the name of a list as an argument and displays a menu containing the items in the list. However, the menu never displays and it just reports nil. Can anybody fix it?

Bump.


/* No comment */

Offline

 

#1028 2010-09-04 16:15:06

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Cool custom blocks in Scratch

nXIII wrote:

TheSuccessor wrote:

Billybob-Mario wrote:


I already have. BYOB made that easy. Now I need to have it add these to costumes. I'll post a secret 1.1 beta to help explain. http://dl.dropbox.com/u/6509165/Slash%2 … Beta.image Look at blocks such as 'self'.

Very secret now, isn't it...  big_smile

tongue  I was just thinking that...

It's not on the website. It's semi-secret.

Offline

 

#1029 2010-09-05 01:42:04

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

Re: Cool custom blocks in Scratch

Billybob-Mario wrote:

nXIII wrote:

TheSuccessor wrote:


Very secret now, isn't it...  big_smile

tongue  I was just thinking that...

It's not on the website. It's semi-secret.

Wow.
You start from BYOB, take Panther blocks, and now Bingo Blocks?!
Stop stealing everyone's ideas!(and interface changes)


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

Offline

 

#1030 2010-09-05 08:27:44

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

Re: Cool custom blocks in Scratch

Zorbak42 wrote:

Joeman592 wrote:

Im making my own scratch-based project, and i need some blocks. could you please give me te codes for a <I recieve[^]> conrtrol booolean, a bounce, if touching [^], bounce motion blocks, Think nothing and change costume # by () look blocks, and if you can do thats THANK YOU SOOOOOO MUCH!!!!

I can give you code for change costume # by (). Put

Code:

changeCostumeIndexBy: t1 
    self costumeIndex: self costumeIndex + t1

in looks ops of ScriptableScratchMorph instance,

Code:

('change costume by %n' #- #changeCostumeIndexBy: 1)

in SpriteMorph blockSpecs, and

Code:

('change background by %n' #- #changeBackgroundIndexBy: 1)

in StageMorph blockSpecs. Hope it helps!  smile

This could help me find a new code!


Marzipan11 must learn to not spoil

Offline

 

#1031 2010-09-05 09:29:52

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Cool custom blocks in Scratch

bbbeb wrote:

Billybob-Mario wrote:

nXIII wrote:


tongue  I was just thinking that...

It's not on the website. It's semi-secret.

Wow.
You start from BYOB, take Panther blocks, and now Bingo Blocks?!
Stop stealing everyone's ideas!(and interface changes)

I didn't originally start from BYOB, and I didn't steal Bingo Blocks. I just want to make the best possible mod for people to enjoy. Scratch is supposed to be open-sourced, as are all mods, which means that pretty much every idea can and will be taken from everyone.
(not by me)

Offline

 

#1032 2010-09-05 12:28:04

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

Re: Cool custom blocks in Scratch

Billybob-Mario wrote:

bbbeb wrote:

Billybob-Mario wrote:

It's not on the website. It's semi-secret.

Wow.
You start from BYOB, take Panther blocks, and now Bingo Blocks?!
Stop stealing everyone's ideas!(and interface changes)

I didn't originally start from BYOB, and I didn't steal Bingo Blocks. I just want to make the best possible mod for people to enjoy. Scratch is supposed to be open-sourced, as are all mods, which means that pretty much every idea can and will be taken from everyone.
(not by me)

Wow.
I dont know what to say....

Last edited by bbbeb (2010-09-05 12:37:03)


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

Offline

 

#1033 2010-09-05 14:37:30

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

Re: Cool custom blocks in Scratch

zorket wrote:

Zorbak42 wrote:

Joeman592 wrote:

Im making my own scratch-based project, and i need some blocks. could you please give me te codes for a <I recieve[^]> conrtrol booolean, a bounce, if touching [^], bounce motion blocks, Think nothing and change costume # by () look blocks, and if you can do thats THANK YOU SOOOOOO MUCH!!!!

I can give you code for change costume # by (). Put

Code:

changeCostumeIndexBy: t1 
    self costumeIndex: self costumeIndex + t1

in looks ops of ScriptableScratchMorph instance,

Code:

('change costume by %n' #- #changeCostumeIndexBy: 1)

in SpriteMorph blockSpecs, and

Code:

('change background by %n' #- #changeBackgroundIndexBy: 1)

in StageMorph blockSpecs. Hope it helps!  smile

This could help me find a new code!

Wait... I couldn't transform this into a new block.


Marzipan11 must learn to not spoil

Offline

 

#1034 2010-09-05 15:18:39

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

Re: Cool custom blocks in Scratch

kinker wrote:

LS97 wrote:

johnnydean1 wrote:

Could you make me a <sprite _ touching sprite_> block

I'll try and see what i can do. Check back in a few mins, i might have it up!
EDIT: i got the block. here's the code:

Code:

sprite: t1 touching: t2 
    | t3 |
    t3 _ t1 bounds intersect: t2 bounds.
    (t3 width > 0 and: [t3 height > 0])
        ifTrue: [^ true].
    ^ false

i'm so proud of myself  smile

What the block spec?

If there is a <sprite_is touching sprite> block, then where's the <color[ any ]is    <touching[ a sprite ]> (block spec is ('color c: is touching m:' #b #colorTouching)?

I also made a new block: put in blockSpecs: ('%s uppercase' #r #uppercase:)

The code to be placed in the string ops:

Code:

uppercase: t1
^ t1 asUppercase

Offline

 

#1035 2010-09-05 17:11:53

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

Re: Cool custom blocks in Scratch

Marioblender wrote:

Code:

uppercase: t1
^ t1 asUppercase

Im Pretty Sure LS97 Said That Already.
Read before you post.

Last edited by bbbeb (2010-09-05 17:13:02)


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

Offline

 

#1036 2010-09-05 21:23:22

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

Re: Cool custom blocks in Scratch

Billybob-Mario wrote:

bbbeb wrote:

Billybob-Mario wrote:


It's not on the website. It's semi-secret.

Wow.
You start from BYOB, take Panther blocks, and now Bingo Blocks?!
Stop stealing everyone's ideas!(and interface changes)

I didn't originally start from BYOB, and I didn't steal Bingo Blocks. I just want to make the best possible mod for people to enjoy. Scratch is supposed to be open-sourced, as are all mods, which means that pretty much every idea can and will be taken from everyone.
(not by me)

bbbeb wrote:

Wow.
I dont know what to say....

Yea. I just ... like ... no.


nXIII

Offline

 

#1037 2010-09-05 23:38:38

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

Re: Cool custom blocks in Scratch

bbbeb wrote:

Billybob-Mario wrote:

bbbeb wrote:


Wow.
You start from BYOB, take Panther blocks, and now Bingo Blocks?!
Stop stealing everyone's ideas!(and interface changes)

I didn't originally start from BYOB, and I didn't steal Bingo Blocks. I just want to make the best possible mod for people to enjoy. Scratch is supposed to be open-sourced, as are all mods, which means that pretty much every idea can and will be taken from everyone.
(not by me)

Wow.
I dont know what to say....

Now i know!
DONT BE THAT PERSON!!!!!!!


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

Offline

 

#1038 2010-09-06 11:51:24

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

Re: Cool custom blocks in Scratch

bbbeb wrote:

bbbeb wrote:

Billybob-Mario wrote:


I didn't originally start from BYOB, and I didn't steal Bingo Blocks. I just want to make the best possible mod for people to enjoy. Scratch is supposed to be open-sourced, as are all mods, which means that pretty much every idea can and will be taken from everyone.
(not by me)

Wow.
I dont know what to say....

Now i know!
DONT BE THAT PERSON!!!!!!!

If you want to nick other peoples' blocks, you could at the very least give credit. And asking is a good idea too. Mind you, you can nick ideas - i.e. this mod has a block I like, I'll code it myself.


/* No comment */

Offline

 

#1039 2010-09-06 12:12:09

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

Re: Cool custom blocks in Scratch

Billybob-Mario wrote:

bbbeb wrote:

Billybob-Mario wrote:

It's not on the website. It's semi-secret.

Wow.
You start from BYOB, take Panther blocks, and now Bingo Blocks?!
Stop stealing everyone's ideas!(and interface changes)

I didn't originally start from BYOB, and I didn't steal Bingo Blocks. I just want to make the best possible mod for people to enjoy. Scratch is supposed to be open-sourced, as are all mods, which means that pretty much every idea can and will be taken from everyone.
(not by me)

Ok. look. if you want to take my blocks, take them. but do NOT say that you didn't.

From http://creativecommons.org/licenses/by-sa/2.0/
You are free:
to Share — to copy, distribute and transmit the work
to Remix — to adapt the work
Under the following conditions:
Attribution — You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

that is something we need to work on, don't we? now let me show you something.
Screenshot of Bingo 1.2.0 released 4 August 2010
http://i52.tinypic.com/34pkg91.png
Screenshot of Slash 1.1 Beta released Two days ago (as far as i'm concerned)
http://i53.tinypic.com/2d9d4i0.png

what do you think? don't they look a bit similar?

and, i forgot to add, i made up the order and certain names (like hand and fist).
and isn't it wierd, my one has been removed?

Last edited by LS97 (2010-09-06 12:13:35)

Offline

 

#1040 2010-09-06 12:16:02

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

Re: Cool custom blocks in Scratch

LS97 wrote:

that is something we need to work on, don't we? now let me show you something.
Screenshot of Bingo 1.2.0 released 4 August 2010
http://i52.tinypic.com/34pkg91.png
Screenshot of Slash 1.1 Beta released Two days ago (as far as i'm concerned)
http://i53.tinypic.com/2d9d4i0.png

what do you think? don't they look a bit similar?

and, i forgot to add, i made up the order and certain names (like hand and fist).
and isn't it wierd, my one has been removed?

I hate to sound like this, but...
Let's not argue with him. Even if I agree with you, even if you know you're right, all we're going to do is start a massive argument and nobody is going to be happier at the end.


nXIII

Offline

 

#1041 2010-09-06 12:35:49

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

Re: Cool custom blocks in Scratch

nXIII wrote:

LS97 wrote:

that is something we need to work on, don't we? now let me show you something.
Screenshot of Bingo 1.2.0 released 4 August 2010
http://i52.tinypic.com/34pkg91.png
Screenshot of Slash 1.1 Beta released Two days ago (as far as i'm concerned)
http://i53.tinypic.com/2d9d4i0.png

what do you think? don't they look a bit similar?

and, i forgot to add, i made up the order and certain names (like hand and fist).
and isn't it wierd, my one has been removed?

I hate to sound like this, but...
Let's not argue with him. Even if I agree with you, even if you know you're right, all we're going to do is start a massive argument and nobody is going to be happier at the end.

i would just really love it if people stopped claiming blocks that aren't theirs. i can perfectly understand that if we don't build our ideas on top of others', we're never going to get anywere. Mankind stepped on the moon thanks to inventions like platic too - if NASA had to invent everything itself, we would still be up to the invention of the bucket.  tongue
So: build on others' ideas, but give the appropriate credit and never claim something to be yours when it's not.

Offline

 

#1042 2010-09-06 12:38:13

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

Re: Cool custom blocks in Scratch

LS97 wrote:

i would just really love it if people stopped claiming blocks that aren't theirs. i can perfectly understand that if we don't build our ideas on top of others', we're never going to get anywere. Mankind stepped on the moon thanks to inventions like platic too - if NASA had to invent everything itself, we would still be up to the invention of the bucket.  tongue
So: build on others' ideas, but give the appropriate credit and never claim something to be yours when it's not.

Yes, you're right. My opinion: there's a line between "building on other's ideas" and "using nothing but the ideas of others", and it's been crossed by numerous mods (not yours!)

Last edited by nXIII (2010-09-06 12:38:25)


nXIII

Offline

 

#1043 2010-09-06 12:44:05

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

Re: Cool custom blocks in Scratch

nXIII wrote:

LS97 wrote:

i would just really love it if people stopped claiming blocks that aren't theirs. i can perfectly understand that if we don't build our ideas on top of others', we're never going to get anywere. Mankind stepped on the moon thanks to inventions like platic too - if NASA had to invent everything itself, we would still be up to the invention of the bucket.  tongue
So: build on others' ideas, but give the appropriate credit and never claim something to be yours when it's not.

Yes, you're right. My opinion: there's a line between "building on other's ideas" and "using nothing but the ideas of others", and it's been crossed by numerous mods (not yours!)

Thank you for that compliment. I really do put focus on credit. You can find a whole page on block credit in the Bingo manual for 1.2. You're included many times, i have to say.

And i perfectly agree with the statement before that too. Not saying that grouping work isn't useful - But just doing it for the fun of making a mod without knowing a word of Squeak is definitely not worth sharing. But there have been many fowl roads in the world of discovery, and let's just hope in a better environment for the future.

Offline

 

#1044 2010-09-06 12:59:17

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

Re: Cool custom blocks in Scratch

Hi, how do you make a custom reporter not display the (sprite 1 ..... |variable|)


You can now reach me on Twitter @johnnydean1_

Offline

 

#1045 2010-09-06 13:55:58

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

Re: Cool custom blocks in Scratch

johnnydean1 wrote:

Hi, how do you make a custom reporter not display the (sprite 1 ..... |variable|)

change SomeClassIForgotWhoMaybeBlockMorphOrReporterBlockMorphOrScriptableScratchMorph #isSpriteSpecific:

Last edited by nXIII (2010-09-06 13:56:21)


nXIII

Offline

 

#1046 2010-09-06 14:03:00

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

Re: Cool custom blocks in Scratch

nXIII wrote:

johnnydean1 wrote:

Hi, how do you make a custom reporter not display the (sprite 1 ..... |variable|)

change SomeClassIForgotWhoMaybeBlockMorphOrReporterBlockMorphOrScriptableScratchMorph #isSpriteSpecific:

Lol.


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

Offline

 

#1047 2010-09-06 15:30:28

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: Cool custom blocks in Scratch

LS97 wrote:

Dominic1 wrote:

Can you make a block that opens the paint editor? I've been trying, but I can't get it to work.

if you want it to open the editor to create a new costume it's pretty easy.
i had a look at the source code and found
('paint new' - drawNewCostume)
it's as simple as that.
not sure if it works though

I'll try it


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#1048 2010-09-06 15:37:08

Dominic1
Scratcher
Registered: 2009-07-30
Posts: 89

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

Sperry wrote:

There is absolutely no point in creating a pause block. Why? Because how will it know when to resume if nothing is running? It can't. So you don't need the play either. If you want to make a pause, make it the BYOB3 way, like next to the green flag and stop sign.

It will resume when another script e.g. when sprite clicked or when key pressed is triggered later on. Also, you could have pause all scripts for sprite whatever and a similar play block.

Why not have it pause all the scripts except the one that has the pause block in it?


http://i49.tinypic.com/oiwvh5.jpg

Offline

 

#1049 2010-09-06 18:50:02

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

Sperry wrote:

There is absolutely no point in creating a pause block. Why? Because how will it know when to resume if nothing is running? It can't. So you don't need the play either. If you want to make a pause, make it the BYOB3 way, like next to the green flag and stop sign.

It will resume when another script e.g. when sprite clicked or when key pressed is triggered later on. Also, you could have pause all scripts for sprite whatever and a similar play block.

In Slash (based on BYOB) I made a pause block.

Also how would I make that block???

Offline

 

#1050 2010-09-07 12:20:53

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

Re: Cool custom blocks in Scratch

TheSuccessor wrote:

TheSuccessor wrote:

Code:

showMenu: t1 
    | t2 t3 t4 t5 t6 t7 |
    t2 _ self listNamed: t1 ifNone: [^ ''].
    t3 _ self lineCountOfList: t2.
    t4 _ 1.
    t5 _ CustomMenu new.
    t3
        timesRepeat: 
            [t6 _ self getLine: t4 ofList: t2.
            t5 add: t6 asString action: t6.
            t4 _ t4 + 1].
    t5 localize.
    t7 _ t5 startUp.
    ^ t7

This takes the name of a list as an argument and displays a menu containing the items in the list. However, the menu never displays and it just reports nil. Can anybody fix it?

Bump.

Bump.


/* No comment */

Offline

 

Board footer