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

#1 2012-05-23 05:55:55

JE58ELS
New Scratcher
Registered: 2011-06-21
Posts: 2

Show / Hide Sprites on Different Levels of Maze Game

Hi

I've created a maze game with loads of sprites and want to show / hide them on different levels, I have tried adding these instructions to the Sprite
[scratchblocks]
when I receive Level 1
hide   

when I receive Level 2
show

This hides the sprite on Level 1, but will not show it on Level 2. 

Any suggestions ??

Offline

 

#2 2012-05-23 07:28:55

jontmy00
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Show / Hide Sprites on Different Levels of Maze Game

JE58ELS wrote:

Hi

I've created a maze game with loads of sprites and want to show / hide them on different levels, I have tried adding these instructions to the Sprite

when I receive [Level 1 v]
hide   

when I receive [Level 2 v]
show

This hides the sprite on Level 1, but will not show it on Level 2. 

Any suggestions ??

when gf clicked
hide
forever
if <(level) = [1]>
hide
else
if <(level) = [2]>
show
else
Keep repeating for other levels
End
End
This should work.  wink


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#3 2012-05-23 10:43:37

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Show / Hide Sprites on Different Levels of Maze Game

How you have it will work, but you need to make sure something is broadcasting level 2, otherwise it won't work. There also may be another script that hides it after it is shown, although I don't really think that's the problem.


Why are the secret organizations getting all the attention?  mad

Offline

 

Board footer