Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Ghost effect after stop button (for game I’ve been making)
- Unagios
-
Scratcher
28 posts
Ghost effect after stop button (for game I’ve been making)
I need the ghosted sprite to be hidden when the stop button is pressed. I have tried to look it up online, but I could not find the “i” button that most forums were talking about. Can someone help?
- DylanIsNice
-
Scratcher
11 posts
Ghost effect after stop button (for game I’ve been making)
Is it talking about a variable named i?
- Unagios
-
Scratcher
28 posts
Ghost effect after stop button (for game I’ve been making)
No, https://scratch.mit.edu/discuss/topic/228283/?page=1#post-2317603 the second post says something about an “i”
- NoUsername-King
-
Scratcher
100+ posts
Ghost effect after stop button (for game I’ve been making)
No, https://scratch.mit.edu/discuss/topic/228283/?page=1#post-2317603 the second post says something about an “i”That is because that post is very old. In 2016, scratch still used 2.0, which had an “i” for sprite transformations. Now in scratch 3.0, the sprite transformations menu is always visible between the stage and sprites pane. In that post, they talked about just hiding the sprite. instead of using ghost effect. Unless you need the sprite to dynamically change opacity during gameplay, use the show and hide blocks instead.
- Unagios
-
Scratcher
28 posts
Ghost effect after stop button (for game I’ve been making)
Is there any way to detect a stop button press? If I hide the hit boxes, they won’t be detected, so i want to hide them at stop button press.
- DylanIsNice
-
Scratcher
11 posts
Ghost effect after stop button (for game I’ve been making)
Honestly, I've never seen an i in my scratch games. So besides the “i” issue, I think I have a solution for the ghosted sprite not being hidden. (Only do this if you didn't use the timer block.) In the backdrop, reset the timer forever when green flag clicked. After, grab a when timer is greater than 0 and place a hide block under the hatblock, and place the code in the sprite you're trying to hide. This should work, here is the code if you didn't follow along:
(Sorry for late response)
If you did use the timer block, either use another block or ask someone else for help.
when green flag clicked
forever
reset timer
end
when [ timer] > (0)
hide
(Sorry for late response)
If you did use the timer block, either use another block or ask someone else for help.
Last edited by DylanIsNice (March 29, 2025 06:12:35)
- nembence
-
Scratcher
500+ posts
Ghost effect after stop button (for game I’ve been making)
Another way is to make a clone of the ghost effect sprite and hide the original sprite. Clones disappear when the stop sign is clicked. This doesn't keep the green flag highlighted, but some hat blocks can run both in the original sprite and the clone
- Unagios
-
Scratcher
28 posts
Ghost effect after stop button (for game I’ve been making)
Ohhh ok! Thanks for everything!
- Discussion Forums
- » Help with Scripts
-
» Ghost effect after stop button (for game I’ve been making)



