Discuss Scratch

Gnome_Pal
Scratcher
64 posts

Ghost Effect

So yeah i'm making a project with a custom block like this
Fade In :: custom
And its supposed to do this
define Fade In
repeat (18)
change [ghost effect v] effect by (-5)
end
But i'm wondering if u can actually make it fade in with the hide block like this
when green flag clicked
hide

when this sprite clicked
Fade In :: custom
And 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?

Last edited by Gnome_Pal (April 7, 2021 23:23:48)

-ShadowOfTheFuture-
Scratcher
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
Scratcher
64 posts

Ghost Effect

-ShadowOfTheFuture- wrote:

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.
Wait so your saying i have to make it invisible with the ghost effect instead of using hide?
So instead of this…
when green flag clicked
hide
Your saying i have to do this
when green flag clicked
set [ghost effect v] effect to (100)
So that i can do this
when green flag clicked
Fade In :: custom

Last edited by Gnome_Pal (April 8, 2021 00:21:30)

-ShadowOfTheFuture-
Scratcher
1000+ posts

Ghost Effect

Gnome_Pal wrote:

-ShadowOfTheFuture- wrote:

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.
Wait so your saying i have to make it invisible with the ghost effect instead of using hide?
So instead of this…
when green flag clicked
hide
Your saying i have to do this
when green flag clicked
set [ghost effect v] effect to (100)
So that i can do this
when green flag clicked
Fade In :: custom
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.

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
Scratcher
64 posts

Ghost Effect

Oh ok, thanks!
when green flag clicked
set [ghost effect v] effect to (100)
Fade In :: custom
say [Thank you!]

Powered by DjangoBB