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

#1 2011-01-22 08:48:10

boop2
New Scratcher
Registered: 2011-01-21
Posts: 7

How to make a sprite appearing and dissapearing?

Hi ,

Suppose in my game i have 4 stages, and i want my sprite to appear only on the 1 & 3. How do i do for it to be not on the 2 & 4, but on the 1&3 ?

Answer fast,

THANK YOOUU  big_smile

Offline

 

#2 2011-01-22 09:05:02

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: How to make a sprite appearing and dissapearing?

Put this script in the sprite:

when green flag clicked
forever
   if [{background#} of {stage} = 1] or [{background#} of {stage} = 3]
      show
   if [{background#} of {stage} = 2] or [{background#} of {stage} = 4]
      hide

Last edited by HD123 (2011-01-22 09:07:12)


~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&online=http://lemonfanatic.webs.com/ONLINE.png&offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#3 2011-01-22 14:54:49

ian528
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: How to make a sprite appearing and dissapearing?

You could use a variable too:
If level # = 1 or 3
Show

Offline

 

#4 2011-01-24 14:49:42

boop2
New Scratcher
Registered: 2011-01-21
Posts: 7

Re: How to make a sprite appearing and dissapearing?

thank youu guys  big_smile

Offline

 

#5 2011-01-24 15:13:19

boop2
New Scratcher
Registered: 2011-01-21
Posts: 7

Re: How to make a sprite appearing and dissapearing?

HD123 wrote:

Put this script in the sprite:

when green flag clicked
forever
   if [{background#} of {stage} = 1] or [{background#} of {stage} = 3]
      show
   if [{background#} of {stage} = 2] or [{background#} of {stage} = 4]
      hide

thnk u, but do i  need to make a variable called background o something... ? & when its like that : [ ...... ] It's a block in another one right ? ( hope u understand what i mean ;P )

Thnk u again  wink

Offline

 

#6 2011-01-24 15:25:15

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

Re: How to make a sprite appearing and dissapearing?

boop2 wrote:

HD123 wrote:

Put this script in the sprite:

when green flag clicked
forever
   if [{background#} of {stage} = 1] or [{background#} of {stage} = 3]
      show
   if [{background#} of {stage} = 2] or [{background#} of {stage} = 4]
      hide

thnk u, but do i  need to make a variable called background o something... ? & when its like that : [ ...... ] It's a block in another one right ? ( hope u understand what i mean ;P )

Thnk u again  wink

Nope; background number is a reporter block. I think it's under "looks" when you have the stage selected.


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

 

#7 2011-01-24 16:45:01

boop2
New Scratcher
Registered: 2011-01-21
Posts: 7

Re: How to make a sprite appearing and dissapearing?

hmmm , can u select the block ? when u reply, if u go down a little, you'll see like motion, looks sound and all...  smile

Offline

 

#8 2011-01-24 16:49:21

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

Re: How to make a sprite appearing and dissapearing?

I don't think it's there; the forum blocks are very outdated.


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

 

#9 2011-01-24 17:33:41

boop2
New Scratcher
Registered: 2011-01-21
Posts: 7

Re: How to make a sprite appearing and dissapearing?

oh oook , thk u anyway
But, what color is the block?

Offline

 

#10 2011-01-25 18:46:22

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

Re: How to make a sprite appearing and dissapearing?

It's under looks, in the same place the costume # block normally is. (Make sure you have the stage selected)


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

 

#11 2011-01-25 19:40:56

MarioLuigi2009
Scratcher
Registered: 2009-12-26
Posts: 63

Re: How to make a sprite appearing and dissapearing?

It's under sensing (light blue). It says "{costume#} of {Sprite1}" as default, but you can change {Sprite1} to {Stage}.


http://mag.racked.eu/mcimage/i349/Achievement++get%21/Slammin+Salmon/mca.pnghttp://mag.racked.eu/mcimage/i5007/Achievement++get%21/Smile+for+the+camera/mca.pnghttp://mag.racked.eu/mcimage/i54/Achievement++get%21/Storin+dirt.../mca.pnghttp://www.minecraftanonymous.com/assets/banners/banner_78.png

Offline

 

Board footer