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

#1 2010-07-10 13:40:30

bayded
New Scratcher
Registered: 2010-07-08
Posts: 10

Hiding a sprite in stage backgrounds

How do I hide a sprite in one stage background and show it in another

Offline

 

#2 2010-07-10 13:42:48

Sunrise-Moon
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: Hiding a sprite in stage backgrounds

Forever if (variable background) = (one you want it to hide in)
Hide
Else
Show


http://i1067.photobucket.com/albums/u427/HulKDzN/RebornBlade.png

Offline

 

#3 2010-07-10 13:49:45

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Offline

 

#4 2010-07-10 13:59:50

bayded
New Scratcher
Registered: 2010-07-08
Posts: 10

Re: Hiding a sprite in stage backgrounds

Thanks guys !

Offline

 

#5 2010-07-10 17:59:55

bayded
New Scratcher
Registered: 2010-07-08
Posts: 10

Re: Hiding a sprite in stage backgrounds

Now Im stuck does anyone know how to hide the sprites from two different backgrounds?

Offline

 

#6 2010-07-10 18:22:43

MaxtheWeirdo
Scratcher
Registered: 2010-03-18
Posts: 500+

Re: Hiding a sprite in stage backgrounds

I can think of a way. Make a list of background numbers it shows on. Be sure it is For This Sprite Only.
then put
if list of showing background contains costume number of Stage
show
else
hide


My website. Hall Crawler My Awesome OS
It's just marketing, guys! Nothing sinister!

Offline

 

#7 2010-07-10 18:32:47

bayded
New Scratcher
Registered: 2010-07-08
Posts: 10

Re: Hiding a sprite in stage backgrounds

Nevermind I figured it out and can you think of a way to change the sprites possiton when changing to a different background? when it changes the background it stays where it left of.

Offline

 

#8 2010-07-10 21:42:15

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

Re: Hiding a sprite in stage backgrounds

bayded wrote:

Nevermind I figured it out and can you think of a way to change the sprites possiton when changing to a different background? when it changes the background it stays where it left of.

Hm... You mean everytime the background changes, the sprite moves left a little bit?

Offline

 

#9 2010-07-10 22:01:06

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Hiding a sprite in stage backgrounds

bayded wrote:

Nevermind I figured it out and can you think of a way to change the sprites possiton when changing to a different background? when it changes the background it stays where it left off.

That's what he meant. Anyway, just use
[blocks]<forever>
<if><( background# of Stage <=> some # )>
<go to x sad  something )y sad   something
<end>[/blocks]
Duplicate the "if" and change the numbers as many times as necessary.


Yawn.

Offline

 

#10 2010-07-11 00:12:11

bayded
New Scratcher
Registered: 2010-07-08
Posts: 10

Re: Hiding a sprite in stage backgrounds

meowmeow55 wrote:

bayded wrote:

Nevermind I figured it out and can you think of a way to change the sprites possiton when changing to a different background? when it changes the background it stays where it left off.

That's what he meant. Anyway, just use
[blocks]<forever>
<if><( background# of Stage <=> some # )>
<go to x sad  something )y sad   something
<end>[/blocks]
Duplicate the "if" and change the numbers as many times as necessary.

Yea I meant that sorry for the typo and thanks !

Offline

 

Board footer