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

#1 2007-07-24 21:05:41

Game-Boy
Scratcher
Registered: 2007-07-24
Posts: 1

How do you keep the background music in a constent loop?

I put the background music in but i can't seem to keep it playing. The only other music that plays is the sound that i put in for winning or losing. how do i get a constent loop?

Offline

 

#2 2007-07-24 21:09:44

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: How do you keep the background music in a constent loop?

First find out how long the sound goes on for. Then put these blocks in

when flag clicked
forever
play music
wait "length of sound clip"

If you want to know how long your sound is it tells you just below the title of your sound clip.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2007-07-24 21:12:20

toontownmiser
Scratcher
Registered: 2007-06-28
Posts: 18

Re: How do you keep the background music in a constent loop?

Or:

Green flag clicked
forever{
play sound (music) and wait
}


Algebra I Lesson for Today:
(cat)+(dog)=(fish)
Given: c=1, a=1, t=2  d=1,o=1, g=2 and f=1, i=1, s=2, s=2
True or False?

Offline

 

#4 2007-09-06 15:42:42

dinther
Scratcher
Registered: 2007-08-22
Posts: 19

Re: How do you keep the background music in a constent loop?

toontownmiser wrote:

Or:

Green flag clicked
forever{
play sound (music) and wait
}

That actually causes a delay before the loop starts again. I gotta try the other solution using the wait.


Find out what it is like to steer large ships into the Port of Rotterdam in ShipSim http://scratch.mit.edu/projects/dinther/32891

Offline

 

Board footer