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

#1 2010-07-03 01:40:39

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

Can someone make an instance guide?

I can work with the Class specs, but well,

Instance is rougher than anything.(Or i am clueless.)
maybe... just maybe...

someone could make an instance guide on a few useful blocks so that people like me can learn this?


(Source Code)

Last edited by bbbeb (2010-07-03 01:52:20)


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

Offline

 

#2 2010-07-03 01:42:56

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: Can someone make an instance guide?

What do you mean by instance? One use only?
I think you just build the script without a forever block around it


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#3 2010-07-03 01:52:00

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

Re: Can someone make an instance guide?

******Source Code******


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

Offline

 

#4 2010-07-03 03:46:25

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

Re: Can someone make an instance guide?

i made 1


You can now reach me on Twitter @johnnydean1_

Offline

 

#5 2010-07-03 08:51:03

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

Re: Can someone make an instance guide?

(It's not called an instance, it's called a method)

Well, the problem with methods is not that they are hard to do, it's just that you need to know a lot of different commands in smalltalk. Making small ones is easy. I have made a couple. One of them is the (0 / 0) block that will not stop your script. This is the method for it:

Code:

this: divisor dividedBy: dividend
      dividend = 0 ifTrue: [^ divisor]
      ^ divisor / dividend

all in all, it's not that much different than coding in BYOB, because when you make a block in BYOB, you are making the method for it. This particular code would be something like:

http://img713.imageshack.us/img713/47/0block.png

See, it's not that hard.


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

Offline

 

#6 2010-07-03 15:58:38

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

Re: Can someone make an instance guide?

ah, ok.
it just confuses me, all the bunch of lines and the diffrent codes.


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

Offline

 

#7 2010-07-03 18:09:50

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

Re: Can someone make an instance guide?

bbbeb wrote:

ah, ok.
it just confuses me, all the bunch of lines and the diffrent codes.

Just a couple weeks ago it confused me too. Now it doesn't.


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

Offline

 

#8 2010-07-05 09:16:33

majormax
Scratcher
Registered: 2008-04-06
Posts: 1000+

Re: Can someone make an instance guide?

ScratchReallyROCKS wrote:

...it's just that you need to know a lot of different commands in smalltalk.

I would like to learn of a guide for that. Although there probably isn't one here on the Scratch Forums.

Offline

 

#9 2010-07-05 10:53:49

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

Re: Can someone make an instance guide?

majormax wrote:

ScratchReallyROCKS wrote:

...it's just that you need to know a lot of different commands in smalltalk.

I would like to learn of a guide for that. Although there probably isn't one here on the Scratch Forums.

Yeah, actually there is: This thread

Last edited by ScratchReallyROCKS (2010-07-05 10:55:12)


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

Offline

 

Board footer