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

#1 2008-03-15 13:52:14

RonnieS
Scratcher
Registered: 2008-03-12
Posts: 3

How to not have "secondary" sprites on stage at the beginning

Hi,  Scratch newbies here.

We have looked at the faqs and forum and can't find the answer to what seems a very basic problem.

We want to have a series of new sprites appear and disappear at certain points in the script for a "master" sprite and can see how to do this via the broadcast, show and hide commands.
BUT how do we start off with only the "master" sprite on the stage?

When we create a "secondary" sprite , it forces itself onto the stage, whereas we want it to appear for the first time at a certain point in the script for the master sprite.

We are probably being VERY STUPID   but can't figure it out.

Best

Nicola and Ronnie

Offline

 

#2 2008-03-15 16:35:01

FPSFelix
Scratcher
Registered: 2008-02-06
Posts: 100+

Re: How to not have "secondary" sprites on stage at the beginning

simple, when green flag clicked:
hide


this is what i brought you, this you can keep.
this is what i brought, you may forget me.
i promise to depart, just promise one thing...
kiss my eyes and lay me to sleep.

Offline

 

#3 2008-03-16 03:42:51

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: How to not have "secondary" sprites on stage at the beginning

In fact, scratch does not supports to create or remove sprites in a script.
But you can hide show in a script.

Code:

master sprite code:

When Green Flag clicked
forever
   wait (1) secs
   broadcast [appear 1]
   wait (2.5) secs
   broadcast [appear 2]
   wait (3) secs
   broadcast [disappear 1]
   wait (2) secs
   broadcast [disappear 2]
-------------------------------
sprite1 scripts:

When Green Flag clicked
hide

When I receive [appear 1]
show

When I receive [disappear 1]
hide
-------------------------------
sprite2 scripts:

When Green Flag clicked
hide

When I receive [appear 2]
show

When I receive [disappear 2]
hide
-------------------------------

Hope that helped  wink

Joren


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

Board footer