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

#1 2007-05-28 12:34:16

mohlar
Scratcher
Registered: 2007-05-24
Posts: 100+

How to play music loops over action?

When creating, say, a dance sequence using nested repeats and sprites, how can you play a music or percussion loop that starts again as soon as it ends?

I've got the nested loops working for the dance and if I place the percussion track at the start everything's fine. Then the percussion part ends and the dance finishes in silence. I've tried nesting the whole lot inside a third repeat loop but that's no good because the drums only start up again when the third repeat cycle begins.  I then tried putting the percussion loop inside the first repeat cycle - but that chops it up as each new sprite appears.

What I'm after is a way to have a 'core' of nested repeats over which a long loop can be played and then start again when it finishes.

(In an earlier post I mentioned the difficulty of describing a Scratch program without being able to list the code ..... this is a darn good example of what I mean!)

Offline

 

#2 2007-05-28 13:30:34

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: How to play music loops over action?

Use a broadcast message to start the sound track when needed, and to synchronize the movements to the music.

Offline

 

#3 2007-05-28 14:49:54

mohlar
Scratcher
Registered: 2007-05-24
Posts: 100+

Re: How to play music loops over action?

Thanks Kevin -
I'm only just starting to experiment with Scratch and that's a command-type I haven't looked at yet. I'll store that tip away for trying in the near future.

Offline

 

Board footer