Discuss Scratch

tygamer1234
Scratcher
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
jTron
Scratcher
100+ posts

A hidden script?

tygamer1234 wrote:

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
tygamer1234
Scratcher
44 posts

A hidden script?

Thx
tygamer1234
Scratcher
44 posts

A hidden script?

The X button still shows… it is set to no .

Powered by DjangoBB