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

#1 2012-07-21 21:27:33

SaintSquireen
New Scratcher
Registered: 2012-07-21
Posts: 3

Object Oriented Scratch

I don't know what language the scratch team is using to write Scratch but if they want to upgrade to today's standards, they have to get going on the object oriented stuff. Most of you know this not as "object orientation" but as "cloning". For an example, I will have to use Minecraft (mostly because its famous and a lot of people know what it is) but also because when you picture Minecraft, you picture tens of thousands of blocks and a pretty decent fps (on an average computer). Well opening up Scratch and trying to add 100 coexisting blocks and then adding your player and then adding running water and then adding the ability to create and destroy blocks and then adding mobs (in-game creatures) and then adding crafting capabilities and then adding smelting capabilities and then.........etc etc etc etc etc etc..... (I think you see where I'm going with this hahaha) your game would crash after trying to load just the 20th block or so! Its frustrating!!! It would be way more ideal to add a block or a widget or something that would choose a sprite and then once the game starts up, will create an instance of the sprite that would have all of the characteristics of the original sprite. You could make 1 sprite in the code but when the game starts up, you would have 1000 instances of that 1 sprite all running a muck and interacting with each other and having a good time!!!!!!!!!!!! Wouldn't that be awesome!!! Now if Scratch 2.0 comes out and there isn't object oriented widgets or blocks then I am sure all of us will be extremely upset. That would be the sole reason why I would come back and stay with Scratch! Scratch team, pull your pants up and get to work already!!!

p.s.~If you didn't understand some of my language, don't worry about it, the Scratch team knows what I mean  wink  .

p.p.s.~If you want to see my      Minecraft: Order of the Stone       project, go and look up my username or the name of my game                                                              ^  above.

Offline

 

#2 2012-07-21 21:33:02

777w
Scratcher
Registered: 2009-02-10
Posts: 1000+

Re: Object Oriented Scratch

nice idea, i dont think squeak could handle this seeing how every mod with cloning ive seen is like super slow but maybe flash could

Offline

 

#3 2012-07-21 22:12:56

SaintSquireen
New Scratcher
Registered: 2012-07-21
Posts: 3

Re: Object Oriented Scratch

do you happen to know what language they are using to program all of this stuff? if it is java or c or c++ then it shouldn't be a problem. seeing as how it is easily put up on the internet and is played by flash, then i would have to guess java but  cant be sure........

Offline

 

#4 2012-07-21 22:59:26

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Object Oriented Scratch

They are using CS3, or something.  There will be cloning in 2.0, and making minecraft blocks is quite simple, if you know the scripts.


http://i47.tinypic.com/2iaa73k.png

Offline

 

#5 2012-07-22 06:28:15

777w
Scratcher
Registered: 2009-02-10
Posts: 1000+

Re: Object Oriented Scratch

SaintSquireen wrote:

do you happen to know what language they are using to program all of this stuff? if it is java or c or c++ then it shouldn't be a problem. seeing as how it is easily put up on the internet and is played by flash, then i would have to guess java but  cant be sure........

i think theyre doing 2.0 in flash

Offline

 

#6 2012-07-22 06:42:21

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Object Oriented Scratch

It's kinda object-oriented already.  hmm


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#7 2012-07-29 11:06:57

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Object Oriented Scratch

SciTecCf wrote:

It's kinda object-oriented already.  hmm

Believe me, it is not.

Right now, the only possible way to do that uses the pen blocks, which is annoying and not that great without multiple buffering. I'm thinking that in Scratch 2.0 you could implement one sprite for each "class" and have a system where it clones itself and then broadcasts something that would have the blocks check if a local ID number variable is the default value, and if so, then assign themselves a vacant ID number, and then it could work up from there. Personally, though, I agree with you.

Last edited by lalala3 (2012-07-29 11:07:12)


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#8 2012-07-29 11:47:22

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Object Oriented Scratch

Scratch is for beginners...


http://i47.tinypic.com/2iaa73k.png

Offline

 

#9 2012-07-29 11:58:08

SaintSquireen
New Scratcher
Registered: 2012-07-21
Posts: 3

Re: Object Oriented Scratch

well i think there should be some advanced stuff in scrtch too becaues et would get extremely boring if everybody knew everythingthat can be done in scratch.  *cough cough* like now.

Offline

 

#10 2012-07-29 12:03:53

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Object Oriented Scratch

Well if you don't like scratch, use another language.  Because scratch is meant for beginners, and this would be too confusing.


http://i47.tinypic.com/2iaa73k.png

Offline

 

#11 2012-07-29 14:09:33

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Object Oriented Scratch

berberberber wrote:

and this would be too confusing.

It's just an added possibility, not a requirement necessarily. And also:

How to make helpful suggestions for Scratch wrote:

Wide walls: Scratchers should be able to make all kinds of things with Scratch - not just animations and games, but news programs, science experiments - things we can't even imagine.
High Ceiling: Even though it's easy for someone who is new to programming to get started with Scratch, it should still be possible to make complex stuff.


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#12 2012-07-29 14:17:57

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Object Oriented Scratch

lalala3 wrote:

SciTecCf wrote:

It's kinda object-oriented already.  hmm

Believe me, it is not.

Right now, the only possible way to do that uses the pen blocks, which is annoying and not that great without multiple buffering. I'm thinking that in Scratch 2.0 you could implement one sprite for each "class" and have a system where it clones itself and then broadcasts something that would have the blocks check if a local ID number variable is the default value, and if so, then assign themselves a vacant ID number, and then it could work up from there. Personally, though, I agree with you.

Exactly.

The pen blocks don't annoy me, though; I make dynamically rendered images using skeletons (replicas of, anyway) in Scratch all the time! I'm planning on using this to make a Warrior Cat designer (angelica101 is supplying the art. :3) I totally agree with you.  big_smile


http://i50.tinypic.com/312u714.jpg

Offline

 

#13 2012-07-29 14:20:37

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Object Oriented Scratch

BirdByte wrote:

The pen blocks don't annoy me, though; I make dynamically rendered images using skeletons (replicas of, anyway) in Scratch all the time! I'm planning on using this to make a Warrior Cat designer (angelica101 is supplying the art. :3) I totally agree with you.  big_smile

And you clear the screen to redraw them for each frame? Gosh, that's scary.

Last edited by lalala3 (2012-07-29 14:20:53)


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#14 2012-07-29 14:23:31

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Object Oriented Scratch

Scratch 2.0 (the next version) will have cloning, so don't worry. There might be limit of 100 or so clones per project though.  hmm

Oh, Scratch 1.4 is made in Squeak, an implementation of Smalltalk, while Scratch 2.0 will be re-written in Flash.

Last edited by scimonster (2012-07-29 14:24:08)

Offline

 

#15 2012-07-29 14:25:35

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Object Oriented Scratch

scimonster wrote:

Scratch 2.0 (the next version) will have cloning, so don't worry. There might be limit of 100 or so clones per project though.  hmm

Oh, Scratch 1.4 is made in Squeak, an implementation of Smalltalk, while Scratch 2.0 will be re-written in Flash.

Instancing is better, though, as I said earlier in this topic, pseudo-instancing is possible with cloning.


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#16 2012-07-29 14:30:30

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Object Oriented Scratch

scimonster wrote:

Scratch 2.0 (the next version) will have cloning, so don't worry. There might be limit of 100 or so clones per project though.  hmm

Oh, Scratch 1.4 is made in Squeak, an implementation of Smalltalk, while Scratch 2.0 will be re-written in Flash.

Actually, the limit is 1,000.


http://i47.tinypic.com/2iaa73k.png

Offline

 

#17 2012-07-29 14:37:08

soniku3
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Object Oriented Scratch

berberberber wrote:

scimonster wrote:

Scratch 2.0 (the next version) will have cloning, so don't worry. There might be limit of 100 or so clones per project though.  hmm

Oh, Scratch 1.4 is made in Squeak, an implementation of Smalltalk, while Scratch 2.0 will be re-written in Flash.

Actually, the limit is 1,000.

I thought 500.


internet's all about cats today.

Offline

 

#18 2012-07-29 14:43:58

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: Object Oriented Scratch

No, that just when it crashes.   tongue


http://i47.tinypic.com/2iaa73k.png

Offline

 

#19 2012-07-29 14:55:19

BirdByte
Scratcher
Registered: 2012-07-07
Posts: 1000+

Re: Object Oriented Scratch

lalala3 wrote:

BirdByte wrote:

The pen blocks don't annoy me, though; I make dynamically rendered images using skeletons (replicas of, anyway) in Scratch all the time! I'm planning on using this to make a Warrior Cat designer (angelica101 is supplying the art. :3) I totally agree with you.  big_smile

And you clear the screen to redraw them for each frame? Gosh, that's scary.

Mmhmmmmmmmmmmmmmmmmm :3
Relax, it works really well in the Flash player.  smile


http://i50.tinypic.com/312u714.jpg

Offline

 

Board footer