This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-12-23 16:31:44

Blayer98
Scratcher
Registered: 2012-03-22
Posts: 100+

Stuck...

How do i make it so that you don't hear Sounds when i have a menu showing?

in other words, i want it so that i DON'T hear sounds when pressing Left or right keys on 1 menu, but then hearing them on another.

oh, and another thing, HOW do i hide something when it's "FOREVER HIDING AND SHOWING"!?

here's the script for the hiding and showing sprite.

When i receive [Game v]
forever
hide
wait (0.5) secs
show
wait (0.5) secs
if <key [space v] pressed?>
hide
end
Here's the scripts for the Selection sprite.

when [left arrow v] key pressed
move (-100) steps
play sound [Button v]
when [right arrow v] key pressed
move (100) steps
play sound [Button v]
when [a v] key pressed
play sound [Select v]
PLEASE HELP!  sad


http://i50.tinypic.com/16lwmlj.png
The first Collab to have it's very own Cloud Variables! Coming Soon!

Offline

 

#2 2012-12-23 16:33:16

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Stuck...

forever
if menu showing
stop all sounds


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#3 2012-12-23 16:39:40

Blayer98
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Stuck...

Please Put that into Scratch Blocks please, i keep forgetting.


http://i50.tinypic.com/16lwmlj.png
The first Collab to have it's very own Cloud Variables! Coming Soon!

Offline

 

#4 2012-12-23 16:56:36

Blayer98
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Stuck...

Bbbbbbbbuuuuuuuuuuummmmmmmmmmmmppppppppp.....


http://i50.tinypic.com/16lwmlj.png
The first Collab to have it's very own Cloud Variables! Coming Soon!

Offline

 

#5 2012-12-23 17:41:20

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Stuck...

forever
if <(menu variable, 1 for showing, 0 for hiding) = (1)>
stop all <not> pinks [but v] [sounds v]


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#6 2012-12-23 17:44:08

Blayer98
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Stuck...

ok ty. but i need help with the OTHER one as well.


http://i50.tinypic.com/16lwmlj.png
The first Collab to have it's very own Cloud Variables! Coming Soon!

Offline

 

#7 2012-12-27 10:58:35

Snowdrift
Scratcher
Registered: 2011-06-22
Posts: 500+

Re: Stuck...

Blayer98 wrote:

When i receive [Game v]
forever
hide
wait (0.5) secs
show
wait (0.5) secs
if <key [space v] pressed?>
hide
end

When i receive [Game v]
repeat until (key [space v] pressed?)
hide
wait (0.5) secs
show
wait (0.5) secs
end
hide

Offline

 

#8 2012-12-28 21:59:17

MeTwo
Scratcher
Registered: 2010-11-29
Posts: 14

Re: Stuck...

You have to make two different loops, one hiding and showing forever, the other will be when space pressed, hide.

Offline

 

Board footer