I know that using the ghost effect can make a sprite slowly disappear and fade out, but is there a way to make a sprite slowly appear in the same manner? I want to make my sprite slowly appear when holding down a key.
Pretty much the opposite of the original ghost effect.
Thank you so much if you can help.
Offline
using
change [ghost v] effect by [-1]you can make it fade in (what you're asking for). if you change any of the effects by a negative number, they would move backward compared to putting in a positive number.
Offline
That is what I'm asking, but that approach doesn't seem to work.
This is What I did.
when gf clicked forever if <key [down arrow v] pressed?> change [ghost v] effect by (-1)
Offline
eatingiceman wrote:
That is what I'm asking, but that approach doesn't seem to work.
This is What I did.
when gf clicked forever if <key [down arrow v] pressed?> change [ghost v] effect by (-1)
Well, you have to have this:
when gf clicked set [ghost v] effect to (100) forever if <key [down arrow v] pressed?> change [ghost v] effect by (-1)That way, it'll go from fully transparent (100) to non transparent (0). I could give you a more complicated script that would make it fade in then out then in then out, but I don't think you want that.
Offline
Om my Gosh Thank youu! It worked and You might of just saved my project
But if you don't mind one last question is there any way to make the effect more stable?
I mean it works, but it wont always go back to 0% transparency when holding down the button. If you hold down the button too long it will flicker between fully there and slightly transparent.
Offline
eatingiceman wrote:
Om my Gosh Thank youu! It worked and You might of just saved my project
But if you don't mind one last question is there any way to make the effect more stable?
I mean it works, but it wont always go back to 0% transparency when holding down the button. If you hold down the button too long it will flicker between fully there and slightly transparent.
I don't know why that would be happening, but you can do this (it'll not flicker)
when gf clicked set [ghost v] to [100] //variable set [ghost v] effect to [100] forever if <not<<(ghost)=[0]>or<(ghost) < [0] >>> if <key [down v] pressed?> change [ghost v] effect by [-1] change [ghost v] by [-1] else set [ghost v] effect to [0] //scripts set [ghost v] to [0] //scripts endand whenever you want to reset it, you just have another script that'll have this:
set [ghost v] to [100] set [ghost v] effect to [100]To check if it's your computer's problem, put the two blocks that have the comment "scripts" on them in the else, to check if it's your other scripts, take out the blocks that have the comment "scripts" on them.
Offline
when gf clicked set [ghost v] effect to (100) set [ghost v] to [100] forever if <key [down arrow v] pressed?> repeat until <(ghost) = [0]> change [ghost v] effect by (-1) change [ghost v] by (-1)And whenever you need to reset it:
set [ghost v] effect to (100) set [ghost v] to [100]
Offline
I usually use
repeat 100
change ghost effect by -1
Offline
FistofDeath wrote:
I usually use
repeat 100
change ghost effect by -1
Yeah, that's what I usually use, too.
Offline