Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Ghost Effect
- Gnome_Pal
-
64 posts
Ghost Effect
So yeah i'm making a project with a custom block like this
Fade In :: customAnd its supposed to do this
define Fade InBut i'm wondering if u can actually make it fade in with the hide block like this
repeat (18)
change [ghost effect v] effect by (-5)
end
when green flag clicked
hide
when this sprite clickedAnd so if u are making your sprite hide when flag is clicked (u saw wut Fade In does) like can u make it fade in even tho u used hide block instead of using the ghost effect block and making it 100?
Fade In :: custom
Last edited by Gnome_Pal (April 7, 2021 23:23:48)
- -ShadowOfTheFuture-
-
1000+ posts
Ghost Effect
Hide makes your sprite invisible regardless of what its ghost effect is. You have to set the ghost effect to 100 and show the sprite if you want it to fade in.
Last edited by -ShadowOfTheFuture- (April 7, 2021 23:31:08)
- Gnome_Pal
-
64 posts
Ghost Effect
Wait so your saying i have to make it invisible with the ghost effect instead of using hide? Hide makes your sprite invisible regardless of what its ghost effect is. You have to set the ghost effect to 100 and show the sprite if you want it to fade in.
So instead of this…
when green flag clickedYour saying i have to do this
hide
when green flag clickedSo that i can do this
set [ghost effect v] effect to (100)
when green flag clicked
Fade In :: custom
Last edited by Gnome_Pal (April 8, 2021 00:21:30)
- -ShadowOfTheFuture-
-
1000+ posts
Ghost Effect
Yeah. If you hide the sprite, it will stay hidden even if its ghost effect gets changed. They're two separate things: ghost effect just makes the sprite transparent, while hide also prevents it from interacting with things like your mouse pointer or other sprites.Wait so your saying i have to make it invisible with the ghost effect instead of using hide? Hide makes your sprite invisible regardless of what its ghost effect is. You have to set the ghost effect to 100 and show the sprite if you want it to fade in.
So instead of this…when green flag clickedYour saying i have to do this
hidewhen green flag clickedSo that i can do this
set [ghost effect v] effect to (100)when green flag clicked
Fade In :: custom
Also, I'd personally suggest moving set ghost effect and fade in into the same script.
when green flag clicked
set [ghost v] effect to (100)
fade in :: custom
- Gnome_Pal
-
64 posts
Ghost Effect
Oh ok, thanks!
when green flag clicked
set [ghost effect v] effect to (100)
Fade In :: custom
say [Thank you!]
- Discussion Forums
- » Help with Scripts
-
» Ghost Effect