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

#1 2011-01-27 12:19:06

frowned
Scratcher
Registered: 2010-11-02
Posts: 42

TUTORIAL: how to make your own End of script blocks like stopall

to make a block with only a spot to attach it at the top simply do this:
first let's create our block...
in class view go to Scratch-Objects->ScriptableScratchMorph->blockspecs->blockspecs

Code:

('This is a sample end block' #- #sampleendblock)

press accept

next let's make the method:
in instance view go to Scratch-Objects->ScriptableScratchMorph->other ops

Code:

sampleendblock
                      self sayNothing

press accept

now here is the secret sauce:

in instance view go to Scratch-Blocks->CommandBlockMorph->accessing->isStop
see the line where it says "#stopAll"?
Replace it with :

Code:

^ selector = #doReturn | (selector = #stopAll)|(selector = #sampleendblock)

press accept
and you are done, you now have a script-end block  cool

Edit: here is a Image to show you:
https://static.e-junkie.com/sslpic/40672.18acc0b9a880ef39c8c40aea896935a7.gif

Last edited by frowned (2011-01-28 13:26:46)

Offline

 

#2 2011-01-27 12:41:31

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: TUTORIAL: how to make your own End of script blocks like stopall

Not working.

Last edited by scimonster (2011-06-06 08:33:04)

Offline

 

#3 2011-01-27 12:50:21

frowned
Scratcher
Registered: 2010-11-02
Posts: 42

Re: TUTORIAL: how to make your own End of script blocks like stopall

scimonster wrote:

not working

eh... works for me... are you deleting anything? cause you should not be...

Offline

 

#4 2011-01-27 12:55:09

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: TUTORIAL: how to make your own End of script blocks like stopall

No.

It says parentheses expected or something like that.

Last edited by scimonster (2011-06-06 08:33:27)

Offline

 

#5 2011-01-27 17:22:46

frowned
Scratcher
Registered: 2010-11-02
Posts: 42

Re: TUTORIAL: how to make your own End of script blocks like stopall

um... on which part?

Offline

 

#6 2011-01-27 17:30:01

frowned
Scratcher
Registered: 2010-11-02
Posts: 42

Re: TUTORIAL: how to make your own End of script blocks like stopall

ah i see you must have done this:

^ selector = #doReturn | (selector = #stopAll #sampleendblock

you forgot a )

Offline

 

#7 2011-01-27 18:49:41

frowned
Scratcher
Registered: 2010-11-02
Posts: 42

Re: TUTORIAL: how to make your own End of script blocks like stopall

oh sorry i have a correction... the thing in isStop should be

^ selector = #doReturn | (selector = #stopAll)|(selector = #sampleendblock)

note: corrected in first post

Last edited by frowned (2011-01-28 13:05:10)

Offline

 

#8 2011-01-27 21:58:03

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

Re: TUTORIAL: how to make your own End of script blocks like stopall

nice! Maybe with this you could add more to the method and make it do something!


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

Offline

 

#9 2011-01-28 01:27:08

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: TUTORIAL: how to make your own End of script blocks like stopall

Keep posting usefully and you'll be promoted to Scratcher. Scratchers can edit and delete their posts.

Last edited by scimonster (2011-06-06 08:33:46)

Offline

 

#10 2011-09-06 14:26:21

frowned
Scratcher
Registered: 2010-11-02
Posts: 42

Re: TUTORIAL: how to make your own End of script blocks like stopall

I remember when i made this...

Offline

 

Board footer