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

#26 2010-08-04 15:03:36

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

Re: Blocktalk

Oh! Sorry.

Yes, it supposed to be object oriented, like Smalltalk. The only difference is that you will be able to define scripts for classes and instances, like if you have:

Code:

when green flag clicked
move 10 steps

In the class side, all instances of that class will move 10 steps.

If you want to create a new instance, you can have:

Code:

when I receive new
create a new instance of me

Or something along those lines on either side. Does that help?

Last edited by Jwosty (2010-08-04 15:03:56)


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

Offline

 

#27 2010-08-04 15:15:01

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

Re: Blocktalk

Jwosty wrote:

Oh! Sorry.

Yes, it supposed to be object oriented, like Smalltalk. The only difference is that you will be able to define scripts for classes and instances, like if you have:

Code:

when green flag clicked
move 10 steps

In the class side, all instances of that class will move 10 steps.

If you want to create a new instance, you can have:

Code:

when I receive new
create a new instance of me

Or something along those lines on either side. Does that help?

Sort of, but I'm not really familiar on how Smalltalk works, its kinda confusing, I prefer it when you have a class, and when you create an object (I think thats what you'd call an instance), that instance will have its own name and attributes, (Unless... I'm just gettng confused.)


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

 

#28 2010-08-04 15:24:51

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

Re: Blocktalk

Yes, actually. You pretty much got it!

Not every object would always do the same thing. For example, you could have an object that you would stretch, but all of the other instances wouldn't because you didn't tell all of them to.

Each instance would react the same way given the same situation, but the same things won't always happen to them. It's kinda complicated, I know, so I'll include a pdf file explaining how to use Blocktalk.


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

Offline

 

#29 2010-08-04 15:29:36

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

Re: Blocktalk

Try downloading this free book and Squeak environment: Bots Inc.

He explains Squeak a little better than I did.  smile


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

Offline

 

#30 2010-08-04 15:45:04

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

Re: Blocktalk

Jwosty wrote:

Yes, actually. You pretty much got it!

Not every object would always do the same thing. For example, you could have an object that you would stretch, but all of the other instances wouldn't because you didn't tell all of them to.

Each instance would react the same way given the same situation, but the same things won't always happen to them. It's kinda complicated, I know, so I'll include a pdf file explaining how to use Blocktalk.

So it'd be a bit like this:
http://a.imageshack.us/img819/7429/createinstanceof.gif
and
http://a.imageshack.us/img266/7060/executeobjectsscript.gif


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

 

#31 2010-08-04 15:48:36

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Blocktalk

Thanks for your explanations. I have a vague understanding of Object Oriented Programming, but I'm not familiar with it. Especially Squeak/Smalltalk. I could see how this would help people learn without having to deal with writing and syntax. (Not that it's terribly hard, but it could be a stumbling block for someone who is already intimidated.)


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#32 2010-08-04 15:56:43

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

Re: Blocktalk

markyparky56 wrote:

Jwosty wrote:

Yes, actually. You pretty much got it!

Not every object would always do the same thing. For example, you could have an object that you would stretch, but all of the other instances wouldn't because you didn't tell all of them to.

Each instance would react the same way given the same situation, but the same things won't always happen to them. It's kinda complicated, I know, so I'll include a pdf file explaining how to use Blocktalk.

So it'd be a bit like this:
http://a.imageshack.us/img819/7429/createinstanceof.gif
and
http://a.imageshack.us/img266/7060/exec … script.gif

Yep! You have it.

But the "Execute script _" Probably won't be in V1. For this version, I'm just trying to get the class and instance script areas down, along with the "create new instance of _ named _" and others like that.


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

Offline

 

#33 2010-08-04 15:57:49

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

Re: Blocktalk

Harakou wrote:

Thanks for your explanations. I have a vague understanding of Object Oriented Programming, but I'm not familiar with it. Especially Squeak/Smalltalk. I could see how this would help people learn without having to deal with writing and syntax. (Not that it's terribly hard, but it could be a stumbling block for someone who is already intimidated.)

Thanks for your support!  smile


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

Offline

 

#34 2010-08-04 16:47:46

terminator68
Scratcher
Registered: 2008-02-26
Posts: 1000+

Re: Blocktalk

Can I beta test please?


--------------------Scratcher since '08--------------------
http://images1.wikia.nocookie.net/__cb20110314152018/mlpfanart/images/5/5d/Applejack_chewing.gif

Offline

 

#35 2010-08-04 16:49:46

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

Re: Blocktalk

Sure!


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

Offline

 

#36 2010-08-04 16:53:35

terminator68
Scratcher
Registered: 2008-02-26
Posts: 1000+

Re: Blocktalk

Jwosty wrote:

Sure!

Is there a file I need to download or something?


--------------------Scratcher since '08--------------------
http://images1.wikia.nocookie.net/__cb20110314152018/mlpfanart/images/5/5d/Applejack_chewing.gif

Offline

 

#37 2010-08-04 16:58:25

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

Re: Blocktalk

terminator68 wrote:

Jwosty wrote:

Sure!

Is there a file I need to download or something?

Its not ready for beta testings...  tongue


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

 

#38 2010-08-04 17:08:21

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

Re: Blocktalk

In fact, I just started it a few days ago... Sorry!  sad


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

Offline

 

#39 2010-08-04 17:15:36

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

Re: Blocktalk

Jwosty wrote:

In fact, I just started it a few days ago... Sorry!  sad

What have you done? Added the extra tab?


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

 

#40 2010-08-04 17:22:24

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

Re: Blocktalk

I added some blocks (I added these to my source code a while ago, so what the heck (one of them made by Jens)), an 'About Blocktalk' dialog saying:

Code:

Based on Scratch from the MIT Media Lab, v1.4

Blocktalk enables you to create classes and instances like the launguage Scratch1.4 and Blocktalk were both programmed in:
Smalltalk.

The Current Developers/Contributers (In order of signing up) are:

>>Jwosty - Programmer

>>ScratchReallyROCKS - Beta Tester
>>meowmeow55 - Beta Tester
>>terminator68 - Beta Tester

The forum topic is located here:
http://scratch.mit.edu/forums/viewtopic.php?pid=487973#p487973

Heh heh... The link goes to this topic.  tongue


And the other tabs that took me a while to figure out. They lead to the same scripting area though; I might have to make a new object for that.

And that's it! It's going really slowly right now because I am not the best in Smalltalk and it is taking me a while to find things. That's why I need other programmers to help me...  smile

Last edited by Jwosty (2010-08-04 17:23:00)


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

Offline

 

#41 2010-08-04 17:23:58

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

Re: Blocktalk

Oh yea, and a 'changes' dialog.


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

Offline

 

#42 2010-08-04 17:24:18

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

Re: Blocktalk

Jwosty wrote:

I added some blocks (I added these to my source code a while ago, so what the heck (one of them made by Jens)), an 'About Blocktalk' dialog saying:

Code:

Based on Scratch from the MIT Media Lab, v1.4

Blocktalk enables you to create classes and instances like the launguage Scratch1.4 and Blocktalk were both programmed in:
Smalltalk.

The Current Developers/Contributers (In order of signing up) are:

>>Jwosty - Programmer

>>ScratchReallyROCKS - Beta Tester
>>meowmeow55 - Beta Tester
>>terminator68 - Beta Tester

The forum topic is located here:
http://scratch.mit.edu/forums/viewtopic.php?pid=487973#p487973

Heh heh... The link goes to this topic.  tongue


And the other tabs that took me a while to figure out. They lead to the same scripting area though; I might have to make a new object for that.

And that's it! It's going really slowly right now because I am not the best in Smalltalk and it is taking me a while to find things. That's why I need other programmers to help me...  smile

Put a full stop between "launguage" and "Scratch1.4",

P.S. Can I beta test?


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

 

#43 2010-08-04 17:27:57

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

Re: Blocktalk

Ok!
_____________
Ok!

Last edited by Jwosty (2010-08-04 17:28:06)


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

Offline

 

#44 2010-08-04 17:30:02

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

Re: Blocktalk

Jwosty wrote:

Ok!
_____________
Ok!

Double ok!


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

 

#45 2010-08-04 17:31:21

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

Re: Blocktalk

Is this better?

Code:

Based on Scratch from the MIT Media Lab, v1.4

Blocktalk enables you to create classes and instances like the launguage that Scratch1.4 and Blocktalk were both programmed in:
Smalltalk.

The Current Developers/Contributers (In order of signing up) are:

>>Jwosty - Programmer

>>ScratchReallyROCKS - Beta Tester
>>meowmeow55 - Beta Tester
>>terminator68 - Beta Tester
>>markyparky56 - Beta Tester

The forum topic is located here:
http://scratch.mit.edu/forums/viewtopic.php?pid=487973#p487973

PS: There you are!  tongue


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

Offline

 

#46 2010-08-04 18:03:27

bendad
Scratcher
Registered: 2008-06-14
Posts: 100+

Re: Blocktalk

you could use my site for uploading and for a website. Also, I would like to be a beta tester and would love to help with coding if I can learn smalltalk.


Hi!  big_smile
Good to see you. (Even if I don't know you  wink  )

Offline

 

#47 2010-08-04 18:36:46

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

Re: Blocktalk

Ok! Sure! Actually, I'm thinking about using weebly.com for the website... but you never know!  smile

And if you want to learn Smalltalk, try downloading this free book and Squeak environment: Bots Inc.


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

Offline

 

#48 2010-08-04 18:56:41

wmays
Scratcher
Registered: 2008-05-10
Posts: 500+

Re: Blocktalk

This would be great for shooting games, because you could make a bunch of instances of the same bullet, and then you could make them dissappear when they hit something.


http://i42.tinypic.com/2z5vcz9.gif
http://phpscripthost.comoj.com/imagescripts/ipimg.php

Offline

 

#49 2010-08-04 18:58:46

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

Re: Blocktalk

Yea, that's the kind of thing it is supposed to be for.  smile


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

Offline

 

#50 2010-08-05 06:10:15

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

Re: Blocktalk

wmays wrote:

This would be great for shooting games, because you could make a bunch of instances of the same bullet, and then you could make them dissappear when they hit something.

Thats how it works in real games.  wink  But not just shooting games, less violent things like bubble popping.

Question: how are you going to deal with the differences beweens sprites and classes, technicaly, they are the same thing.


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

 

Board footer