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

#1 2009-01-26 03:31:41

sliver95
Scratcher
Registered: 2009-01-26
Posts: 17

How to create object ?

All is in the title. I wanna create a "virus" every 3 seconds, but i don't know how.

Please help me.

Offline

 

#2 2009-01-26 05:43:30

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: How to create object ?

So you want the screen to fill up with this virus?  It sounds like what you want to do is use the Stamp command (look under the Pen category).  Stamp will take the image of the sprite and paste it onto the background.  Then you can move the sprite somewhere else and Stamp it again.  It's just the image so it can't move or anything.

If you are looking for something more complicated then that, you will need to use sprites that remain hidden until you need them to appear which can get a bit complicated.  If you want an example of that, take a look at this.

http://scratch.mit.edu/projects/Paddle2See/317725


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2009-01-26 06:48:45

sliver95
Scratcher
Registered: 2009-01-26
Posts: 17

Re: How to create object ?

yup, that's it, thanks.

But i have a question, why Scratch is so strange ? It handle broadcast, variable or other complex things (indispensable, yeah), BUT it doesn't support multiple scenes and duplication, which is common sense!

Thanks again,
me.

Last edited by sliver95 (2009-01-26 06:49:51)

Offline

 

#4 2009-01-26 09:10:05

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: How to create object ?

its due to trying to keep it a simple infironment for the taret auidiance of about 9/10 yrs old

Offline

 

#5 2009-01-26 09:33:29

Lanie
Scratcher
Registered: 2008-02-03
Posts: 1000+

Re: How to create object ?

I would say use stamp command or have an object hide then broadcast it to appear, or make a sprite with multiple costumes where it gets bigger and more duplication appears on a costume

Offline

 

#6 2009-01-26 12:15:53

sliver95
Scratcher
Registered: 2009-01-26
Posts: 17

Re: How to create object ?

lol, Scratch is very powerful, but not in this way. It's bad...

Offline

 

#7 2009-01-26 12:44:05

sliver95
Scratcher
Registered: 2009-01-26
Posts: 17

Re: How to create object ?

Sorry for the double post.

I'll knock up stuffs like scrolling or duplication, because Scratch deserves that one focuses on his case.

Offline

 

#8 2009-01-26 12:45:53

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: How to create object ?

They didn't put sprite duplication in because it allowed for an easy way make your pc crash. Some people may try to make an infinite number of duplicated sprites.

This is the reason someone from the scratch team gave, I am fully in favor of sprite duplication.

Last edited by archmage (2009-01-26 12:47:01)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#9 2009-01-26 12:56:32

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: How to create object ?

i still think they can do it, but limit the duplication to about 50 per project (deleted duplicates lower the duplicated count). the main purpose for duplication is (correct me if im wrong, but especially on this site) for missles (bullets, arrows ect...)

Offline

 

#10 2009-01-26 13:03:10

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: How to create object ?

yambanshee wrote:

i still think they can do it, but limit the duplication to about 50 per project (deleted duplicates lower the duplicated count). the main purpose for duplication is (correct me if im wrong, but especially on this site) for missles (bullets, arrows ect...)

Those are some important users but sprite duplication is much more useful than that!

Think of every sprite that is the same in a program. Each copy of any sprite should be a duplicate, this includes ground tiles, players, enemies, ect.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#11 2009-01-26 13:36:47

sliver95
Scratcher
Registered: 2009-01-26
Posts: 17

Re: How to create object ?

archmage wrote:

They didn't put sprite duplication in because it allowed for an easy way make your pc crash. Some people may try to make an infinite number of duplicated sprites.

This is the reason someone from the scratch team gave, I am fully in favor of sprite duplication.

But it's possible to impose a duplicate cap, like 40.

.... and the multiple stages, why is not in it ? That's a fundamental tool, like adjusting the size of the application + scrolling, even a x;y sprite position towards another sprite position.

if the age is the problem, why not offer two levels of use ?

by the way, i found a hacked version of Scratch who allow clone/delete a sprite during the game. Now I wonder if it's legal and how can I open the Scratch.image file (the source, i think.)

Last edited by sliver95 (2009-01-26 13:40:37)

Offline

 

#12 2009-01-26 16:11:57

sliver95
Scratcher
Registered: 2009-01-26
Posts: 17

Re: How to create object ?

So, is it legal ?

Offline

 

#13 2009-01-26 17:16:07

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: How to create object ?

sliver95 wrote:

So, is it legal ?

Probably...as long as it doesn't use the Scratch name.  The Scratch team allows people access to their source code as long as they don't use the Scratch name and don't allow uploads to the Scratch website.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#14 2009-01-27 08:38:47

sliver95
Scratcher
Registered: 2009-01-26
Posts: 17

Re: How to create object ?

Ok, thanks.

Offline

 

Board footer