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

#1 2012-12-21 21:56:37

joshtemplin3
New Scratcher
Registered: 2012-12-21
Posts: 1

Is Scratch Object-Orientated?

From what i've seen, you cannot create new objects of the exact same type like in, for example, Java.

For example, lets say I'm making a shooter game. There are three waves, and every wave would spawn 12 robots coming for your base. Would I have to make 3 dozen robots that are assigned to their own broadcasts, or can I create new robots off of a "base" robot to save time and effort?

Sorry if this is in the wrong section, I'm somewhat new here  smile

Offline

 

#2 2012-12-21 22:00:28

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Is Scratch Object-Orientated?

In 1.4, you'd have to create each robot individually.  In 2.0, you can base them off of one.


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#3 2012-12-21 22:53:54

Secretmapper
New Scratcher
Registered: 2012-12-10
Posts: 27

Re: Is Scratch Object-Orientated?

It's as Firedrake969 says. Was quite curious when I saw your post title (using scratch when you know Java?)

Offline

 

#4 2012-12-21 23:35:55

sccar3
Scratcher
Registered: 2008-09-04
Posts: 100+

Re: Is Scratch Object-Orientated?

When Scratch 2.0 comes out, they can be based off of one, but currently, there would have to be 3 dozen robots.


http://1.bp.blogspot.com/-WInb2DZ2LBM/UQaLETx3VII/AAAAAAAAAmQ/ZOpSwEPggiE/s1600/The%2BElder%2BScrolls%2BOnline%2BSignup%2BBeta.jpg

Offline

 

#5 2012-12-22 01:23:32

Ideas
Scratcher
Registered: 2012-10-07
Posts: 100+

Re: Is Scratch Object-Orientated?

Hi welcome to scratch, if you want to make it look that way  then you should try stamping this is for Scratch 1.4 and lower.


http://img685.imageshack.us/img685/2010/screenshot20121110at132.pngI think that you must CLICK above

Offline

 

#6 2012-12-22 01:54:41

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Is Scratch Object-Orientated?

To create the three dozen robots quicker there is a duplicate tool. This sort of achieves what you want.

Offline

 

Board footer