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)
Offline
What do you mean by instance? One use only?
I think you just build the script without a forever block around it
Offline
(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:
this: divisor dividedBy: dividend
dividend = 0 ifTrue: [^ divisor]
^ divisor / dividendall 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:
See, it's not that hard.
Offline
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.
Offline
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
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)
Offline