Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Search Bar
- cheetahsrule1000
-
8 posts
Search Bar
So I made a search bar in my game and it works good until the screen switches back to the previous backdrop. When it does that the search bar remains on the screen and I don't know how to make the search bar disappear when it switches to that specific backdrop.
- BoiGeneric
-
27 posts
Search Bar
when green flag clickedthen do in the search bar sprite
if <(backdrop name) = [idk]> then
broadcast [closesearchbar]
end
when I receive [closesearchbar]
hide
- cheetahsrule1000
-
8 posts
Search Bar

Last edited by cheetahsrule1000 (Dec. 15, 2018 19:59:18)
- imfh
-
1000+ posts
Search Bar
The if statement you shared will only run once when the flag is clicked. Try something like this instead:
If this doesn't fix your problem, you will probably need to share the project and link so we can tell what is wrong.
when backdrop switches to [Something v] // This block is under Events
hide // Or broadcast from another sprite
If this doesn't fix your problem, you will probably need to share the project and link so we can tell what is wrong.
- Discussion Forums
- » Help with Scripts
-
» Search Bar