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

#1 2008-07-30 09:07:40

roderj
Scratcher
Registered: 2008-07-17
Posts: 3

Sprite appearance at startup (before flag is clicked)

How do you control whether or not a sprite appears on the background when the project is initially loaded and before the flag is clicked that will start the scripts.

Offline

 

#2 2008-07-30 10:37:03

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

Re: Sprite appearance at startup (before flag is clicked)

How the project appears on the web is exactly the way it was when you Shared it.  So it's a good idea to spend a little time getting it looking good before you post it to the web.  One way to make sure this happens is to design a title screen for your project that runs first (maybe for a few seconds).  If you stop the project while the title screen is showing, then share it, it comes out looking good.


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

Offline

 

#3 2008-07-30 12:37:56

roderj
Scratcher
Registered: 2008-07-17
Posts: 3

Re: Sprite appearance at startup (before flag is clicked)

If I could pursue this question one step further:  I don't know how to prevent every sprite that has been defined from showing  up with the "background" when the project is loaded (and before the flag is clicked to actually run the project).  I understand now, from what you wrote, that if I were to write a script that hid the sprites I didn't want at the start, start the project  by clicking on the flag, wait till things got hidden, then stop the project and do the share then I have a workaround.  But I would have thought there was a more fundamental way to hide sprites one didn't want to appear with the background at the outset.

And now another question:  Is there  way to stop the project for the upload, other than putting in a long time delay which would just mimic a halt?

Thanks for your reply.

Offline

 

#4 2008-07-30 13:06:51

roderj
Scratcher
Registered: 2008-07-17
Posts: 3

Re: Sprite appearance at startup (before flag is clicked)

To Paddle2See:

Never mind.  I inferred from your answer what I need to do. Apparently, if I just add a "hide" script to hide the unwanted sprite and run it manually after the project loads, remove the hide script I just used and then save the project I get what I want.  This doesn't leave any tracks of how it was done, which doesn't seem quite legitimate.  Oh well.

Offline

 

#5 2008-07-30 13:34:09

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

Re: Sprite appearance at startup (before flag is clicked)

roderj wrote:

To Paddle2See:

Never mind.  I inferred from your answer what I need to do. Apparently, if I just add a "hide" script to hide the unwanted sprite and run it manually after the project loads, remove the hide script I just used and then save the project I get what I want.  This doesn't leave any tracks of how it was done, which doesn't seem quite legitimate.  Oh well.

You actually don't need to add any scripts.  Just go to the sprite you want to hide and double-click on the Hide block in the pallet of blocks.  It doesn't have to be in the script area to run it.  I'm a little confused why you wouldn't just have a Hide block on the Green Flag script for sprites that you want to be hidden at the start of the project.


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

Offline

 

Board footer