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

#1 2010-09-11 17:00:55

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Sprite Prototypes

I hear tell around here that 2.0 will probably have some sort of sprite duplication support...yay! But usually when I use another language to produce multiple copies of the same sort of thing on the stage, canvas, whatever, I start with zero copies and then add instances of their class. Obviously that's not how Scratch works, so here's a simple suggestion: split the Sprites pane in two, leaving us with:

1. The "On Stage" panel. Exactly what the sprites pane is now.

2. The "Library" panel. At any time when working with sprites, you can drag the sprite from the "On Stage" to the "Library" panel. The sprite will disappear from the stage. But DON'T PANIC! The sprite still exists, you just can't see it. But you can duplicate it (or create an instance of it) by running the "create a sprite [name of sprite in library]" block. All of these new versions will start off with the exact same properties that the one in the library (the prototype) has. At any time, if you want to move the Library sprite back onto the stage, just drag it into the other panel and it will reappear right where it was.

I don't know how the details of this would work (for example what happens to all the clones when the project is stopped) but I think it's the most elegant way to handle sprite duplication, instead of the version found in most Scratch mods in which the "master" (prototype!) sprite has to be careful not to delete itself.

Comments? Suggestions? Angry rebukes?


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#2 2010-09-11 17:12:03

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

Re: Sprite Prototypes

Nice idea!  smile  But this might be a bit much to add for the Scratch Team, but I'm making a mod, Blocktalk, that will enable you to create classes and instances!  big_smile

(Its nowhere near finished though)


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

Offline

 

#3 2010-09-11 17:19:14

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Sprite Prototypes

Excellent idea - I've always wanted to have sprites in my arsenal for use, but never really wanted to use them until a certain point. You can sort of do this by painstakingly exporting the sprite, but this ought to be far more useful, and easy to use.  big_smile

Offline

 

#4 2010-09-11 19:29:12

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Sprite Prototypes

yikes  That would bring so many possibilities!  big_smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#5 2010-09-13 17:44:06

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Sprite Prototypes

Boisterous, Ungainly Marsupials Prance.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#6 2010-09-13 17:51:31

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

Re: Sprite Prototypes

I have been waiting for Scratch to have classes and instances! I give full support!  big_smile


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

Offline

 

#7 2010-09-20 22:17:32

PIKACHUMASTER
Scratcher
Registered: 2010-08-22
Posts: 2

Re: Sprite Prototypes

how do you make a duplicate of a single sprite without making a bunch of sprites

Offline

 

#8 2010-09-20 22:28:45

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

Re: Sprite Prototypes

PIKACHUMASTER wrote:

how do you make a duplicate of a single sprite without making a bunch of sprites

You can't duplicate perfectly right now, but stamping would be your best bet.


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

Offline

 

#9 2010-09-21 16:15:56

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Sprite Prototypes

I am going to eventually attempt an incredibly complicated game-type thing that uses intensive cloning to do a similar thing.

Offline

 

#10 2010-09-21 21:54:35

PIKACHUMASTER
Scratcher
Registered: 2010-08-22
Posts: 2

Re: Sprite Prototypes

can u make a level editor on scratch

Offline

 

#11 2010-09-22 17:32:25

mhalas165
New Scratcher
Registered: 2010-09-21
Posts: 1

Re: Sprite Prototypes

i would be nice to have pi.

Offline

 

#12 2010-09-22 18:48:27

Billybob-Mario
Scratcher
Registered: 2008-01-05
Posts: 500+

Re: Sprite Prototypes

mhalas165 wrote:

i would be nice to have pi.

Do you mean a block that says pi? Slash has that.

Offline

 

#13 2010-09-22 19:35:19

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

Re: Sprite Prototypes

Great idea! I think that this would (hopefully) be simple enough for new Scratchers to use as well. I'd like to see a system like this in Scratch.


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

 

#14 2010-09-22 19:42:58

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

Re: Sprite Prototypes

Billybob-Mario wrote:

mhalas165 wrote:

i would be nice to have pi.

Do you mean a block that says pi? Slash has that.

Stop advertising Slash!


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

Offline

 

#15 2010-09-24 19:00:01

jackrulez
Scratcher
Registered: 2009-08-01
Posts: 1000+

Re: Sprite Prototypes

Billybob-Mario wrote:

mhalas165 wrote:

i would be nice to have pi.

Do you mean a block that says pi? Slash has that.

0.e Grr..........

ScratchReallyRocks wrote:

Billybob-Mario wrote:

mhalas165 wrote:

i would be nice to have pi.

Do you mean a block that says pi? Slash has that.

Stop advertising Slash!

QFT.


Yawn, another boring text signature. I should really make something better.

Offline

 

Board footer