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

#176 2010-08-26 18:12:42

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

Like I said, don't get your hopes up because I won't finish it for a very ong time, if I finish it at all.


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#177 2010-08-26 18:13:46

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

rubiks_cube_guy238 wrote:

If it's not too late, I think you should base this of of BYOB3. It's basically already  object-oriented. The only thing it's missing is making the sprites object-oriented.

How so?

(The part about BYOB being and OOP; I've never heard of that before)


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#178 2010-08-26 18:15:03

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

Also, back on topic:

Could anyone help me with this latest and (so far) biggest problem?? Remember, It'll never get done if I don't figure it out!  yikes


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#179 2010-08-26 18:21:37

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Blocktalk

Since I am too lazy to read all 2 pages, I'll assume it's awesome.  tongue


Hai.

Offline

 

#180 2010-08-26 18:38:23

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

Here, I dug it out for you:

I wrote:

Hmm... I've seem to run into another problem!  yikes

The Instance Scripts pane won't evaluate the blocks in it. I built the pane by adding another instance variable to the ScriptableScratchMorph called "instanceBlocksBin", and in initialize I added

Code:

self instanceBlocksBin := ScratchScriptsMorph new.

and changed the method in:

Code:

Scratch-UI-Panes >> ScratchScriptEditorMorph >> accessing >> category:

from

Code:

currentCategory: aString

    | xOffset |
    currentCategory _ aString.
    self target ifNil: [^ self].
    xOffset _ 0.

    World activeHand newKeyboardFocus: nil.

    currentCategory = 'Scripts' ifTrue: [
        pageViewerMorph contents: self target blocksBin].
    currentCategory = 'Costumes' ifTrue: [
        pageViewerMorph contents: (self target costumesPage: xOffset)].
    currentCategory = 'Sounds' ifTrue: [
        pageViewerMorph contents: (self target soundsPage: xOffset)].

    pageViewerMorph contents color: ScratchFrameMorph scriptsPaneColor.

    self world ifNotNil: [self world startSteppingSubmorphsOf: pageViewerMorph contents].

to

Code:

currentCategory: aString

    | xOffset |
    currentCategory _ aString.
    self target ifNil: [^ self].
    xOffset _ 0.

    World activeHand newKeyboardFocus: nil.

    currentCategory = 'Class Scripts' ifTrue: [
        pageViewerMorph contents: self target blocksBin].
    currentCategory = 'Instance Scripts' ifTrue: [
        pageViewerMorph contents: self target instanceBlocksBin].
    currentCategory = 'Costumes' ifTrue: [
        pageViewerMorph contents: (self target costumesPage: xOffset)].
    currentCategory = 'Sounds' ifTrue: [
        pageViewerMorph contents: (self target soundsPage: xOffset)].

    pageViewerMorph contents color: ScratchFrameMorph scriptsPaneColor.

    self world ifNotNil: [self world startSteppingSubmorphsOf: pageViewerMorph contents].

Anyone have any idea to fix this?  hmm  Help would be appriciated!  smile

Last edited by Jwosty (2010-08-26 18:38:37)


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#181 2010-08-27 04:01:19

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Blocktalk

Sorry but something similar to this is aleady in the making and will be released in a few months called Atom. Sorry.  sad


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#182 2010-08-27 08:55:01

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

Daffy22 wrote:

Sorry but something similar to this is aleady in the making and will be released in a few months called Atom. Sorry.  sad

WHAT? Darn. Oh well.  yikes


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#184 2010-08-28 09:49:29

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

rdococ wrote:

Do not worry. Everyone has a right to creativity.

I know!  tongue

Daffy22 wrote:

Sorry but something similar to this is aleady in the making and will be released in a few months called Atom. Sorry.  sad

I looked at the Atom thread and it didn't look like it has anything to do with Blocktalk.

1. It is actually a Scratch program, not an actual Scratch Modification
2. It dosen't use classes and instances

hmm


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#185 2010-08-30 16:05:16

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Blocktalk

May I ask, do instances act as sprites attatched to the original instance sprite? And you could move where they are attatched? If so, then creating body parts would be easier in Blocktalk than Scratch!

Offline

 

#186 2010-08-30 16:14:10

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

Re: Blocktalk

rdococ wrote:

May I ask, do instances act as sprites attatched to the original instance sprite? And you could move where they are attatched? If so, then creating body parts would be easier in Blocktalk than Scratch!

I think that's pretty much what he means.

EDIT: I was just thinking, how about instead of a [create a new instance of me] block as you mentioned before, a [create a new instance of []] the input being the name of the class script that you made.

Last edited by ScratchReallyROCKS (2010-08-30 16:15:58)


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

Offline

 

#187 2010-08-30 17:48:02

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

rdococ wrote:

May I ask, do instances act as sprites attatched to the original instance sprite? And you could move where they are attatched? If so, then creating body parts would be easier in Blocktalk than Scratch!

No, the class will not be an actual object on the stage. Think of the class as being an idea, but it would be able to create new instances of itself.


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#188 2010-08-30 17:49:19

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

ScratchReallyROCKS wrote:

EDIT: I was just thinking, how about instead of a [create a new instance of me] block as you mentioned before, a [create a new instance of []] the input being the name of the class script that you made.

Yea! Great idea!  smile

Blocktalk is supposed to be modeled off Smalltalk, and Smalltalk can doo that. So I might as well!  lol


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#189 2010-09-01 13:38:01

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Blocktalk

Jwosty wrote:

rdococ wrote:

May I ask, do instances act as sprites attatched to the original instance sprite? And you could move where they are attatched? If so, then creating body parts would be easier in Blocktalk than Scratch!

No, the class will not be an actual object on the stage. Think of the class as being an idea, but it would be able to create new instances of itself.

Not the class, but the instnances. What is an instance and a class?

Offline

 

#190 2010-09-02 18:58:55

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

rdococ wrote:

Jwosty wrote:

rdococ wrote:

May I ask, do instances act as sprites attatched to the original instance sprite? And you could move where they are attatched? If so, then creating body parts would be easier in Blocktalk than Scratch!

No, the class will not be an actual object on the stage. Think of the class as being an idea, but it would be able to create new instances of itself.

Not the class, but the instnances. What is an instance and a class?

Okay. See, a class is like an invisible box factory, and the instances are like the boxes the factory produces. But the boxes do have their own attributes. EX: Instances have their own position at first, but you can change how they look, where they are and variables. Does that help?  smile


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#191 2010-09-02 19:24:17

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

Re: Blocktalk

Jwosty wrote:

rdococ wrote:

Jwosty wrote:

No, the class will not be an actual object on the stage. Think of the class as being an idea, but it would be able to create new instances of itself.

Not the class, but the instnances. What is an instance and a class?

Okay. See, a class is like an invisible box factory, and the instances are like the boxes the factory produces. But the boxes do have their own attributes. EX: Instances have their own position at first, but you can change how they look, where they are and variables. Does that help?  smile

It's kind of like the clone blocks in Panther.


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

Offline

 

#192 2010-09-02 19:34:00

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

ScratchReallyROCKS wrote:

Jwosty wrote:

rdococ wrote:

Not the class, but the instnances. What is an instance and a class?

Okay. See, a class is like an invisible box factory, and the instances are like the boxes the factory produces. But the boxes do have their own attributes. EX: Instances have their own position at first, but you can change how they look, where they are and variables. Does that help?  smile

It's kind of like the clone blocks in Panther.

Yes, kinda.


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#193 2010-09-02 19:40:23

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

Re: Blocktalk

ScratchReallyROCKS wrote:

Jwosty wrote:

rdococ wrote:


Not the class, but the instnances. What is an instance and a class?

Okay. See, a class is like an invisible box factory, and the instances are like the boxes the factory produces. But the boxes do have their own attributes. EX: Instances have their own position at first, but you can change how they look, where they are and variables. Does that help?  smile

It's kind of like the clone blocks in Panther.

No, not really.

Okay, a class is kind of like a blueprint--it is a design of something, not one of those things itself. From it, you can create as many of whatever it is that the blueprint shows (instances), and each of those can have its own unique properties like its materials, position, etc. These are called instance variables. The blueprint can have things written on it, such as a note about which type of steel to use. These are class variables, which can be accessed by any instance but aren't unique to that instance--they are shared by all instances, and belong to the class itself--the blueprint.


nXIII

Offline

 

#194 2010-09-02 19:51:05

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

Re: Blocktalk

nXIII wrote:

ScratchReallyROCKS wrote:

Jwosty wrote:

Okay. See, a class is like an invisible box factory, and the instances are like the boxes the factory produces. But the boxes do have their own attributes. EX: Instances have their own position at first, but you can change how they look, where they are and variables. Does that help?  smile

It's kind of like the clone blocks in Panther.

No, not really.

Okay, a class is kind of like a blueprint--it is a design of something, not one of those things itself. From it, you can create as many of whatever it is that the blueprint shows (instances), and each of those can have its own unique properties like its materials, position, etc. These are called instance variables. The blueprint can have things written on it, such as a note about which type of steel to use. These are class variables, which can be accessed by any instance but aren't unique to that instance--they are shared by all instances, and belong to the class itself--the blueprint.

That make sense. I still don't get it completely, but that makes sense.

EDIT: Oh, I think I get it! So it's kinda like having an architectural drawing for some mass-building chain. You take that drawing and photocopy it, but add separate annotations and additions to each one. Does that sound right?

Last edited by ScratchReallyROCKS (2010-09-02 19:57:06)


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

Offline

 

#195 2010-09-02 19:53:58

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

nXIII wrote:

ScratchReallyROCKS wrote:

Jwosty wrote:

Okay. See, a class is like an invisible box factory, and the instances are like the boxes the factory produces. But the boxes do have their own attributes. EX: Instances have their own position at first, but you can change how they look, where they are and variables. Does that help?  smile

It's kind of like the clone blocks in Panther.

No, not really.

Okay, a class is kind of like a blueprint--it is a design of something, not one of those things itself. From it, you can create as many of whatever it is that the blueprint shows (instances), and each of those can have its own unique properties like its materials, position, etc. These are called instance variables. The blueprint can have things written on it, such as a note about which type of steel to use. These are class variables, which can be accessed by any instance but aren't unique to that instance--they are shared by all instances, and belong to the class itself--the blueprint.

Great explanation!  big_smile

But just for more info, this is what my BotsInc book says:

BotsInc-OriginalEnglish wrote:

[b]Creating a New Robot
The environment already contains a robot, but now I am going to show you how to create new robots. If you are not satisfied with having only one robot, you can create a new one by sending the appropriate message to a robot factory. A robot factory is graphically represented as an orange box surrounded by a light blue box, in the middle of which the word Bot is written,
as shown in Figure 1-9. In Squeak jargon, and in general in the jargon of object-oriented programming, a robot factory is called a class. Classes (factories that produce objects, such as robots) have a name starting with an uppercase letter. Hence this is the class Bot and not bot.

EDIT: Outposted by ScratchReallyRocks... :S

Last edited by Jwosty (2010-09-02 19:54:48)


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#196 2010-09-04 17:15:49

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Blocktalk

nXIII wrote:

ScratchReallyROCKS wrote:

Jwosty wrote:


Okay. See, a class is like an invisible box factory, and the instances are like the boxes the factory produces. But the boxes do have their own attributes. EX: Instances have their own position at first, but you can change how they look, where they are and variables. Does that help?  smile

It's kind of like the clone blocks in Panther.

No, not really.

Okay, a class is kind of like a blueprint--it is a design of something, not one of those things itself. From it, you can create as many of whatever it is that the blueprint shows (instances), and each of those can have its own unique properties like its materials, position, etc. These are called instance variables. The blueprint can have things written on it, such as a note about which type of steel to use. These are class variables, which can be accessed by any instance but aren't unique to that instance--they are shared by all instances, and belong to the class itself--the blueprint.

And just to be confusing (Myself atleast) what about structs? (Structures) ... and example of one of those would be a Vector3, they're sort of like classes aren't they?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#197 2010-09-04 17:34:07

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

markyparky56 wrote:

nXIII wrote:

ScratchReallyROCKS wrote:

It's kind of like the clone blocks in Panther.

No, not really.

Okay, a class is kind of like a blueprint--it is a design of something, not one of those things itself. From it, you can create as many of whatever it is that the blueprint shows (instances), and each of those can have its own unique properties like its materials, position, etc. These are called instance variables. The blueprint can have things written on it, such as a note about which type of steel to use. These are class variables, which can be accessed by any instance but aren't unique to that instance--they are shared by all instances, and belong to the class itself--the blueprint.

And just to be confusing (Myself atleast) what about structs? (Structures) ... and example of one of those would be a Vector3, they're sort of like classes aren't they?

Well, I've never heard of those...  hmm


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

#198 2010-09-04 22:56:00

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

Re: Blocktalk

markyparky56 wrote:

nXIII wrote:

ScratchReallyROCKS wrote:


It's kind of like the clone blocks in Panther.

No, not really.

Okay, a class is kind of like a blueprint--it is a design of something, not one of those things itself. From it, you can create as many of whatever it is that the blueprint shows (instances), and each of those can have its own unique properties like its materials, position, etc. These are called instance variables. The blueprint can have things written on it, such as a note about which type of steel to use. These are class variables, which can be accessed by any instance but aren't unique to that instance--they are shared by all instances, and belong to the class itself--the blueprint.

And just to be confusing (Myself atleast) what about structs? (Structures) ... and example of one of those would be a Vector3, they're sort of like classes aren't they?

Structures are just groups of data; you can make classes with them, but it would be a fair amount of extra work.


nXIII

Offline

 

#199 2010-09-17 13:08:31

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

Re: Blocktalk

I'm a decent squeaker. If you want to see my best work, check this out.
Engine Block. I have learned a lot just from reading the scratch source, so all I know how to do is mod scratch. I can make new blocks and features though. IDK if you want someone like me.

Last edited by midnightleopard (2010-09-17 13:10:17)


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

Offline

 

#200 2010-09-18 14:13:49

Jwosty
Scratcher
Registered: 2009-12-19
Posts: 500+

Re: Blocktalk

midnightleopard wrote:

I'm a decent squeaker. If you want to see my best work, check this out.
Engine Block. I have learned a lot just from reading the scratch source, so all I know how to do is mod scratch. I can make new blocks and features though. IDK if you want someone like me.

Well thanks, but I can't except your help. I really want to, but my dad doesn't want me to be working with total strangers.


http://i39.tinypic.com/18ert5.png Google it.  smile

Offline

 

Board footer