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

#1 2012-04-05 17:53:24

jimster
Scratcher
Registered: 2009-10-05
Posts: 13

How to hide sprites

I need help hiding sprites. I have this game where I have a secret code and it shows up as a sprite. It only comes up after a certain level but what if someone sees it if they download the script. That's why I want to hide it. Here's the link to the game:
http://scratch.mit.edu/projects/jimster/2438245
Download the script and help me out. If there is no possible way to hide the sprite, then thats okay.

Offline

 

#2 2012-04-05 17:56:32

LiquidMetal
Scratcher
Registered: 2011-06-15
Posts: 500+

Re: How to hide sprites

There is a way... But I think it automatically unhides when you download it  sad

Offline

 

#3 2012-04-05 18:36:15

PullJosh
Scratcher
Registered: 2011-08-01
Posts: 500+

Re: How to hide sprites

Hit make a new sprite. Click the color select tool. Click anywhere inside the paint editor and drag it out to the spot that has all the sprite thumbnails (with the mouse still held). Go to the draw tool. Set the size to as small as it can go. Hit OK. Name the sprite space, but don't write space. Just hit the space key (it's as close as you can get to no name). Then you have a hidden sprite. In it's scripts, make it hide on the green flag click. I hope that helps!


http://www.blocks.scratchr.org/API.php?action=text&string=I'm_on_vacation!&xpos=155&ypos=90&font_size=30&bgimage=http://imageshack.us/a/img339/7215/sspeechsigapiforwords.png

Offline

 

#4 2012-04-05 20:00:47

Haiming
Scratcher
Registered: 2011-08-20
Posts: 1000+

Re: How to hide sprites

PullJosh wrote:

Hit make a new sprite. Click the color select tool. Click anywhere inside the paint editor and drag it out to the spot that has all the sprite thumbnails (with the mouse still held). Go to the draw tool. Set the size to as small as it can go. Hit OK. Name the sprite space, but don't write space. Just hit the space key (it's as close as you can get to no name). Then you have a hidden sprite. In it's scripts, make it hide on the green flag click. I hope that helps!

Yeah... He's right. That's the only way you can do it...

Offline

 

#5 2012-04-05 20:28:33

aryabtsev
Scratcher
Registered: 2012-02-05
Posts: 81

Re: How to hide sprites

Make sure your background is dark
Click draw new sprite
Notice the little white cube that appeared right in the middle of the stage
Right click it and click duplicate
Click cancel on the drawing plane
Now you have a sprite which is fully functional but not visible in the sprite pane


http://i.imgur.com/NX7AO.jpg

Offline

 

#6 2012-04-06 14:16:06

jimster
Scratcher
Registered: 2009-10-05
Posts: 13

Re: How to hide sprites

Figured it out. Thanks for your help.

Offline

 

Board footer