Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Sprite disappearance
- Jeremiah2011-
-
Scratcher
5 posts
Sprite disappearance
Every other time i start the game my button to start the game disappears. Does any one know how to fix this? I’d appreciate it. https://scratch.mit.edu/projects/614478692/ Link to the game.
- Tunde123
-
Scratcher
1000+ posts
Sprite disappearance
This script in that specific sprite is causing it to disappear.

What you should do is this:


What you should do is this:

- -Erick-
-
Scratcher
41 posts
Sprite disappearance
your button does not disappear it goes behind the thumbnail
due to scratch code update order sometimes your thumbnail goes to the front after your button does thus hiding it
use a broadcast in thumbnail sprite after putting it in the front layer to the button sprint
due to scratch code update order sometimes your thumbnail goes to the front after your button does thus hiding it
use a broadcast in thumbnail sprite after putting it in the front layer to the button sprint
broadcast [bring button to front v]rather than using
when green flag clicked
- Tunde123
-
Scratcher
1000+ posts
Sprite disappearance
your button does not disappear it goes behind the thumbnailCorrection. I see the problem now. But my solution still comes into play here.
due to scratch code update order sometimes your thumbnail goes to the front after your button does thus hiding it
use a broadcast in thumbnail sprite after putting it in the front layer to the button sprintbroadcast [bring button to front v]rather than usingwhen green flag clicked
Last edited by Tunde123 (April 20, 2022 14:35:44)
- Discussion Forums
- » Help with Scripts
-
» Sprite disappearance