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

#1 2010-08-04 00:07:23

Scattered
New Scratcher
Registered: 2010-08-04
Posts: 2

Transparent Sprite

Can u make sprites transparent? In a game trying to make a game for sequencing numbers,  if the player puts the number in the correct position (over the transparent sprite) the transparent sprite recognizes this and tell the player they are correct.

Why i want the sprite to be transparent is so that the player cannot c the sprite and its not obstructing the stage.

Help please?

Offline

 

#2 2010-08-04 00:24:27

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

Re: Transparent Sprite

You certainly can! There are two ways: you can use the "hide" and "show" blocks, or you can change the ghost effect - both ways can be found under the "looks" tab. The ghost effect runs from 0, at full opacity, to 100, making it completely transparent. Some sensing, such as clicking, does not work when the ghost effect is set to 100, nor when the sprite is hidden, meaning it is best to set the ghost effect to 99, at which point it is practically invisible, and you can still sense everything.

Hope that helps!

On a side note, this doesn't seem to belong in Troubleshooting - I will move it to All About Scratch for you  smile

Offline

 

#3 2010-08-04 00:48:49

roger-
Scratcher
Registered: 2010-02-13
Posts: 100+

Re: Transparent Sprite

I think clicking works at 100 ghost, because color sensing like (color [ ] touching color [ ] ) works.


Food is Fat. Fat is power.
        I am almighty.

Offline

 

#4 2010-08-04 01:03:10

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

Re: Transparent Sprite

roger- wrote:

I think clicking works at 100 ghost, because color sensing like (color [ ] touching color [ ] ) works.

Colour sensing works - as does "touching mouse pointer." What I was referring to was the "sprite clicked" hat block  smile

Offline

 

#5 2010-08-04 01:07:03

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Transparent Sprite

coolstuff wrote:

roger- wrote:

I think clicking works at 100 ghost, because color sensing like (color [ ] touching color [ ] ) works.

Colour sensing works - as does "touching mouse pointer." What I was referring to was the "sprite clicked" hat block  smile

I think sprite touching sensing, which is what he is trying to do, works when the ghost affect is 100. Although odd how touching mouse pointer works, but a hat block that essentially means <<touching mouse pointer> and <mouse down>> doesn't.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer