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

#1 2009-12-19 00:16:30

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

How to reduce your project's size

(Yes, another guide. I know this is short, but not all can be long. And short can be good... har har. What a bad joke.)

Edit 2
....................................
There have been problems with projects that reach the 10-MB limit. It's a frustrating thing to always have to shrink your project, but there are some ways to help.

Note: It's impossible to magically shrink it. Just try and follow these tips.

-Contents-

1. Music
2. Graphics
3. Duplicate sprites
4. Reusing sprites
5. Tips from users
Epilogue

-Chapter One-
-Music-

It is commonly known that music will easily raise your project size. You may innocently throw in a few songs, and... disaster! Your project won't upload!

It's very frustrating. Removing only one of them could ruin the feel of the project. Or maybe it just belongs there... whatever the reason, one fact is the same: It's irritating.

Consider the following:

• If you have the same sound in different sprites, move it to only one. It just takes up a lot more space! If you have to, place broadcasts to play the music. One sound is bad enough, but two or three extra ones just ruin the whole situation.
• Try and select a short song. If you use one that's eight minutes long, you're adding on lots of silly size. Find a shorter one that has the same feel, or try a really short (fifteen to thirty seconds) music loop.
• Always check how big your sound is after you import it. Just look under the bottom-right corner of the sound name.
• If you're just adding music to a project because you can, be careful. Useless music bumps up your project's size, and can be irritating to those who want to load it or download it.
• Music isn't bad; it's just big.

Overall, music isn't a neccessity. But it adds a lot to lot projects, and can make them much better.

-Chapter Two-
-Graphics-

This isn't such a big bother, but it can happen. If you only know how to do the "multiple sprite" scrolling technique, you can easily use over 120 sprites if you're making a scroller of similar length to Archknight's Adventure or something like that. If that's the case, the best option is to learn how to scroll with two sprites (or one, but that's crazy).

You may also have sixty backgrounds in the stage, all of which represent a level in a game. What you can try is drawing it with the pen blocks, but that only works for thin lines. If you're crazy about that, use BYOB to save space. But be warned: BYOB doesn't work online.

-Chapter Three-
-Duplicate Sprites-

Lots of us know this problem; a spaceship moves into the battlefield, releasing twenty different lasers at the enemy. This has two problems:

• It's laggy.
• It takes up lots of sprites.

Well, multiple sprites can be irritating. You can't really get along without it, unless the travel distance is just a few pixels and the laser limit is three. In that case, stamp the laser in different positions.

If you've realized that you can destroy the enemy in one attack, that means if you have too many lasers. Reduce it, and you should be happier.

If the lasers make a sound on impact, that means you could have the same sound twenty times. What a waste of space! Make a broadcast that tells the Stage to make the noise for them.

Overall, you can't really get along without them. What you can do is reduce them, and maybe reduce what else needs to be done in proportion; then maybe you can cut your project size.

-Chapter Four-
-Reusing sprites-

You may have a game in which there is a switch and lever in each level. Rather than making a sprite for each, you can reuse them.

To do that, simply allow it to keep track of the current level. They can take their places appropriately.

Or maybe you're making a game in which you touch a triangle in each level. Rather than creating a sprite for each, you can have it go here and there.

This is a rather small idea, but it boils down to the fact that you can reuse sprites as long as it doesn't need to be in two places at once (unless you stamp and have lots of sensing).

-Chapter Five-
-Tips from users-

Paddle2See wrote:

Music:  You can use Audacity to shorten a song up...maybe just hang onto the first minute or so of it.  Or, you can use the Play Note blocks to make your own music and take up practically no space at all.  Or, you can use a project like Jens A Little Music projector Rhythm and Blues that creates it's own music on the fly.

Images:  Be careful of imported color images...they can chew up a lot of space if the color depth is great.  Try using an image editor, like Paint.Net to reduce the color depth to something lower and see if you can live with the image quality.  You can also try resampling the image to a lower resolution.

-Epilogue-

Unfortunately, there is a limit to all projects on Scratch. Some of them are hard to break; imagine an enormous RPG with many 480-360 pixel costumes.
A project has to stop somewhere, and finding the point is tricky. If you're defiant, you can try pushing it as much as possible - or avoiding the Share button.

But overall, just try to make your project great and see how it goes.

Last edited by Chrischb (2010-12-20 23:22:41)


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

 

#2 2009-12-19 00:22:10

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: How to reduce your project's size

Great guide! I can't say any more than that.  smile


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2009-12-19 00:32:19

illusionist
Retired Community Moderator
Registered: 2008-07-02
Posts: 1000+

Re: How to reduce your project's size

That is what got me through Space War 3.  smile

I will try your "reducing sounds" in Space War 4.  big_smile


http://i.imgur.com/8LX1NrV.png

Offline

 

#4 2009-12-19 00:44:02

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

Re: How to reduce your project's size

illusionist wrote:

That is what got me through Space War 3.  smile

I will try your "reducing sounds" in Space War 4.  big_smile

Good luck on it...  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 2009-12-19 07:57:20

theThomasG
Scratcher
Registered: 2009-12-16
Posts: 100+

Re: How to reduce your project's size

Wow! This should be a sticky. It is very useful. I'm gonna need it later since my project is basically crashing scratch (Not even Online). Thanks for taking your time to write this article for your fellow scratchers!

Offline

 

#6 2009-12-19 09:29:24

floatingmagictree
Scratcher
Registered: 2008-10-21
Posts: 1000+

Re: How to reduce your project's size

theThomasG wrote:

Wow! This should be a sticky. It is very useful. I'm gonna need it later since my project is basically crashing scratch (Not even Online). Thanks for taking your time to write this article for your fellow scratchers!

Well, how many MBs of memory do you have?

Last edited by floatingmagictree (2009-12-19 09:29:38)

Offline

 

#7 2009-12-19 09:34:23

theThomasG
Scratcher
Registered: 2009-12-16
Posts: 100+

Re: How to reduce your project's size

floatingmagictree wrote:

theThomasG wrote:

Wow! This should be a sticky. It is very useful. I'm gonna need it later since my project is basically crashing scratch (Not even Online). Thanks for taking your time to write this article for your fellow scratchers!

Well, how many MBs of memory do you have?

Don't laugh, but I only have 512 MB. I have a really old computer (More than a decade old!), and I am not going to give up on it. Okay, you can laugh!  tongue

Offline

 

#8 2009-12-20 00:33:37

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

Re: How to reduce your project's size

theThomasG wrote:

Wow! This should be a sticky. It is very useful. I'm gonna need it later since my project is basically crashing scratch (Not even Online). Thanks for taking your time to write this article for your fellow scratchers!

I'm glad it helped... good luck on your Scratch project!  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

 

#9 2010-03-08 19:14:39

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: How to reduce your project's size

I got an apple this time.  lol  But I finished the guide in 15 bites, half the apple. Oh well. I finished the apple typing this. Awesome guide, btw.  big_smile


Hai.

Offline

 

#10 2010-03-08 19:29:00

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: How to reduce your project's size

Nice guide, now I need to learn how to scroll with 2 sprites...  neutral


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#11 2010-03-08 19:51:07

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

Re: How to reduce your project's size

Hooray, bumped. ;P

As for your question, you can download archmage's project...


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

 

#12 2010-12-20 20:38:33

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

Re: How to reduce your project's size

Hey great guide!  Very useful.  Here's some more thoughts:

Music:  You can use Audacity to shorten a song up...maybe just hang onto the first minute or so of it.  Or, you can use the Play Note blocks to make your own music and take up practically no space at all.  Or, you can use a project like Jens A Little Music projector Rhythm and Blues that creates it's own music on the fly.

Images:  Be careful of imported color images...they can chew up a lot of space if the color depth is great.  Try using an image editor, like Paint.Net to reduce the color depth to something lower and see if you can live with the image quality.  You can also try resampling the image to a lower resolution.


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

Offline

 

#13 2010-12-20 23:21:57

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

Re: How to reduce your project's size

Firstly: Yay, this is open again!  big_smile

Secondly: I'll quote you ;D


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

 

Board footer