Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » A hidden script?
- tygamer1234
-
44 posts
A hidden script?
So in my project (link below) my X button is doing something wrong. It will appear if WIndow open=true and then WIndow open is false . Is this a bug?
- - - - - - - - - - - - -
Link is here
- - - - - - - - - - - - -
Link is here
- jTron
-
100+ posts
A hidden script?
So in my project (link below) my X button is doing something wrong. It will appear if WIndow open=true and then WIndow open is false . Is this a bug?
- - - - - - - - - - - - -
Link is here
Nope, because you're not hiding the X button once Window Open? is false.
// your script looks like this:
when green flag clicked
set [Window Open? v] to [no]
hide // you hide at the beginning, but this only happens once.
forever
if <(Window Open?) = [yes]>
show
end
end
// Try this:
when green flag clicked
set [Window Open? v] to [no]
forever
if <(Window Open?) = [yes]>
show
else
hide // now this happens all the time if Window Open? isn't yes.
end
end
- Discussion Forums
- » Bugs and Glitches
-
» A hidden script?