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

#1 2010-06-30 18:19:11

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Block tutorials

Here is a topic which i want many scratchers to give block tutorials and block scripts,i will give two:
Previous costume

Code:

Class:
('Previous costume' #- #previousCostume) 
Instance:
previousCostume
    self costumeIndex: self costumeIndex -1

That code was made by me(but possibly was made before not by me, i just changed  costumeIndex + 1 to -1 and edited the class

Comment:
Ok what you have to do is copy all the in the path ScratchBlocks/CommentBlockMorph/

and all the codes  in this path scratch1.2 beta copy to the same path 1.4 path, and you have it(its not a very good tutorial and the block should show up in the variable list menu)
Again i figured this out but might have been done before

Now give yours, it will help other users! Lets create a bunch of tutorials, unless the code is too "precious".

Offline

 

#2 2010-07-23 10:10:18

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Block tutorials

anyone want to help others? If u need one then ask and me or others might help out

Last edited by dav09 (2010-07-23 10:11:06)

Offline

 

#3 2010-07-23 10:14:21

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Block tutorials

Okay. First of all, it's called a method not and instance. Second of all, if you are just trying to get blocks off of people to make a mod, then nobody will post in here.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#4 2010-07-23 19:29:09

dav09
Scratcher
Registered: 2009-03-25
Posts: 1000+

Re: Block tutorials

First I mean the section in the script scratch called "Instance" in the source
Second  im not making a mod( im making a port of netscratch to1.4 but i dont want other blocks)

I wanted to make this a topic to help others with blocks and what they needed.

Offline

 

Board footer