Discuss Scratch

cheetahsrule1000
New Scratcher
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.
cheetahsrule1000
New Scratcher
8 posts

Search Bar

bump
BoiGeneric
Scratcher
27 posts

Search Bar

when green flag clicked
if <(backdrop name) = [idk]> then
broadcast [closesearchbar]
end
then do in the search bar sprite
when I receive [closesearchbar]
hide
cheetahsrule1000
New Scratcher
8 posts

Search Bar

Last edited by cheetahsrule1000 (Dec. 15, 2018 19:59:18)

imfh
Scratcher
1000+ posts

Search Bar

The if statement you shared will only run once when the flag is clicked. Try something like this instead:

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.

Powered by DjangoBB