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

#1 2012-06-28 11:50:14

DoowNimajneb
New Scratcher
Registered: 2012-06-27
Posts: 65

Pausing and Music Options

Hi, I am making a game, and I want to make a pause menu (using P) with a track list, volume and loads of other things like that.(Also a mute button using M)hsa
I have any scripts for this so far but please help as I cant think of Anythin!

I check back regularly and so will be happy to reply to any questions, solutions or anything else as fast as possible.

Thanks again and Please Help!
DoowNimajneb

Offline

 

#2 2012-06-28 11:54:41

DoowNimajneb
New Scratcher
Registered: 2012-06-27
Posts: 65

Re: Pausing and Music Options

Also, please can anyone submit any other options they can think of because I am fairly stuck right now,
Thanks!

Offline

 

#3 2012-06-28 12:40:20

Corwen
New Scratcher
Registered: 2012-06-23
Posts: 28

Re: Pausing and Music Options

when key M pressed
change (muted) by 1
if (muted) = 1
  stop all sounds
else
  play sound <music>
if (muted) > 1
  set (muted) to 0

that might work, its untested

Offline

 

#4 2012-06-28 12:46:10

Corwen
New Scratcher
Registered: 2012-06-23
Posts: 28

Re: Pausing and Music Options

for the pause, put this on a pause menu sprite and all the clickable buttons (must be seperate sprites to be clickable) on it:

when key P pressed
change (pause) by 1
if (pause) = 1
  show
else
  hide
if (pause) > 1
  set (pause) to 0

this will open and close the menu, i think, try it anyways

Offline

 

Board footer