Discuss Scratch

gangnam_guy_77
Scratcher
6 posts

Operating System

Hi. i am making an Operating System, but I have a problem. The pop-ups in my OS appear the 1st time, but won't appear again if they have to.
the following is the entire script for the pop-up.
when I receive [this message makes popup go.]
show
if <(mouse x) < [-10 ]> then
show
change [ghost] effect by (250)
hide
switch backdrop to [the main backdrop. this popup took place in the options menu.]
end
else
the end of that script is the same as in between the if then (which i tried to put an else at the end) except without the switch backdrop.
I have tried a forever loop, and a separate variable already.

when green flag clicked
say [good luck. -gangnam_guy_77]
stop [all]
ErnieParke
Scratcher
1000+ posts

Operating System

I think the problem here is that you're not resetting the ghost effect. That would explain why it isn't showing multiple times.

Also, so that you know, if you want to make a drop down menu in scratchblocks, just put in a v. For example:

(item (4) of [kukoo birds v])

Becomes:

(item (4) of [kukoo birds v])

Showing,

ErnieParke

gangnam_guy_77
Scratcher
6 posts

Operating System

Thank you! This worked!
broadcast [kudos v]
gigapouch
Scratcher
1000+ posts

Operating System

gangnam_guy_77 wrote:

Hi. i am making an Operating System, but I have a problem. The pop-ups in my OS appear the 1st time, but won't appear again if they have to.
the following is the entire script for the pop-up.
when I receive [this message makes popup go.]
show
if <(mouse x) < [-10 ]> then
show
change [ghost] effect by (250)
hide
switch backdrop to [the main backdrop. this popup took place in the options menu.]
end
else
the end of that script is the same as in between the if then (which i tried to put an else at the end) except without the switch backdrop.
I have tried a forever loop, and a separate variable already.

when green flag clicked
say [good luck. -gangnam_guy_77]
stop [all]

Why is there a ghost effect script? If you are going to use that, put this

set [ghost v] effect to (0)

right after the “When I receive” block.

I have a Steam account. If you have one too, feel free to add me to your friends list.
Also check out my YouTube channel if you like the outdoors, Minecraft, cars, roller coasters, etc.

Powered by DjangoBB