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

#1 2008-04-26 19:36:48

Cpfan999
Scratcher
Registered: 2008-02-03
Posts: 3

How Do I Make It So A Sprite Does Not Show Up On A Background?

What if I wanted one of my sprites  appear only on a certain background? What blocks would I put together?

Offline

 

#2 2008-04-26 19:52:42

Jacobo
Scratcher
Registered: 2007-06-15
Posts: 100+

Re: How Do I Make It So A Sprite Does Not Show Up On A Background?

First make a variable called background. Make this script for the stage.
<when green flag clicked>
<forever>
<set{ background }to( background # (this block is found in the looks section)
<end>

Then make this script for the showing/dissapearing sprite

<when green flag clicked>
<forever>
<if><( <{ background }> <=> the # 0f background that you want it to show on )>
<show>
<else>
<hide>
<end>

Hope this helps!  big_smile

Last edited by Jacobo (2008-04-26 19:52:59)


"It's like deja vu all over again"
-Yogi Berra

Offline

 

Board footer