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

#1 2012-07-29 09:36:33

hawktalon111
Scratcher
Registered: 2012-07-28
Posts: 2

how do you leave a sprite in a certain background?

I am having trouble with this, and it is making my game very annoying! In my game I want to have sprites who live in a certain place and do not follow me everywhere when I switch backgrounds. I looked on the Scratch  Wiki, and I did not find anything helpful!!!!!!!

Suggestions appreciated--thanks.

- hawktalon111

Offline

 

#2 2012-07-29 09:42:11

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: how do you leave a sprite in a certain background?

if <(background #)=[the one you want]>
show
else
hide


http://i46.tinypic.com/ao03lk.png

Offline

 

#3 2012-07-29 12:04:32

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: how do you leave a sprite in a certain background?

if <([background # v] of [stage v])=[the one you want]>
show
else
hide
PhillipSyrrip, you got it wrong, background# is not a global variable. Fixed  big_smile


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#4 2012-07-29 19:25:47

maxamillion321
Scratcher
Registered: 2011-06-17
Posts: 500+

Re: how do you leave a sprite in a certain background?

Mabye make no scripts in for the sprite.

Offline

 

Board footer