Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to pause sound?
#1
what the title says... how do you pause or stop a sound file from play?
i already read the small tut on the website (music in stage), and was useless.

eg.

i have a 5 min sound file

stage 1-1
play from start to 1 min, repeat

stage 1-2
continue play to 2 min. then when it reaches the 2 min mark, repeat from 1 min.

stage 1-3
continue play to 3 min. repeat from 2nd min.

etc.

press F4 = sound stop, then exit to menu


how can i do this? or is it even possible?

thanks for your time.
Reply
Thanks given by:
#2
like you can slow down the voice in lf2.a by using F11 and F12 keys.
Reply
Thanks given by:
#3
this assumes you're familiar with DC and itr kind 8.

if you break your sound file into 5 parts (1 minute per part), you can have a hidden character (must be type 0 to bring it to the next stage without messing up the sound), that has 10 special frames:

frame X
- plays minute 0 ~ 1
- wait: 57 next: X+1

frame X+1
- wait: 1 next: X
- itr kind 8: dvx: X+2

frame X+2
- plays minute 1 ~ 2
- wait: 57 next: X+3

frame X+3
- wait: 1 next: X+2
- itr kind 8: dvx: X+4

... etc. (if you understand these 4 frames, you should be able to figure out the rest)

at each stage (except the first, you don't need it), you opoint a t0 bdy to bring the music-char to the next music frame



Azriel~
Reply
Thanks given by: Av23
#4
hmm interesting, thanks very much. :)

but what about the other problem tho. how do i stop it from playing?

i don't want to quit to VS. mode and still have it playing.
Reply
Thanks given by:
#5
(06-14-2011, 06:01 AM)Sonic Boom Wrote:  like you can slow down the voice in lf2.a by using F11 and F12 keys.
You cannot slow down voice, you can lower the volume XD.
What I do is just to make it like LF2_v2.0a by using 2 frames one with spare cuz sounds dont work in first frames in type: 5 for me. So In the first frame I use wait:0 and in the second frame I used the length of the music x 30. Then after the music ends the frame goes to the first frame again.
[Image: icyboards-ad-468x60.gif]
Reply
Thanks given by:
#6
(06-14-2011, 04:43 PM)Av23 Wrote:  but what about the other problem tho. how do i stop it from playing?

Considering that the game is designed in a matter that sounds will always play to their full length, the only solution to that would be to break up the splitted music into much smaller parts and let the music-object loop through them. That way, it stops pretty soon after quitting (depending on the size of the chucked parts, this might be shorter or longer). The downside of it is, though, that, as soon as you start playing with a lag, you will have an extremely ugly background music as it will pause between each file until the timer is used up.
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by: Electric2Shock




Users browsing this thread: 2 Guest(s)