Okay, I'm having a bit of a problem. I have a sprite hidden, but I want it to fade in to the scene. How do I do this? Does it have something to do with the ghost effect?
Offline
Er... can you show the script? It doesn't seem to be working for me.
Here's what I have:
[blocks]
<when I receive[Show Game]>
<set[ ghost ]effect to(100)>
<repeat(4)
<change[ ghost ]effect by(-25) >[/block]
Is there anything wrong with it?
Offline
Try This:
<hide>
<set[ ghost ]effect to( 100
<show>
<repeat( 25 (you can change this just make sure this # * the repeating # = -100)
<change[ ghost ]effect by(-4 (depending on how high this # is, you may want to put a wait (secs) block.
Offline
Harakou wrote:
It could be hidden behind some other blocks. Try using the
[blocks]<go to front> [/blocks]
block.
He said he used the "hide" block. I think he just forgot to put in the "show" block, so they would see the sprite appear.
Offline
Ah, I see. There is a big difference between 100% of ghost effect and the 'hide' block.
See, an image effect (color, ghost, etc.) only changes the appearance of the sprite; not the sprite itself. A max ghost effect only makes the sprite transparent; the sprite can still be felt by other sprites and will be as active as if there was no ghost effect.
Now, a hide block pulls the sprite off the radar; it cannot be felt by other sprites and cannot be seen either.
You can, however, use the hiding sprite to change variables, broadcast things, etc. You can also change the ghost effect while the sprite is hidden.
Here are the scripts you might want:
http://i54.tinypic.com/jzgm4n.png http://i53.tinypic.com/2igc3mp.png
(I apologize for the inconvenience, New Scratchers can't use images.)
Offline
Ah... I see what you mean... so basically, I have to set the sprite on show straight off the bat, and use the ghost effect to hide it instead of using the hide command?
Thanks for helping me~ I tried it, and it worked! ^^;
((And I'm a she... It's okay if you confuse genders... I don't mind.))
Offline