how to pause sound? - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7) +--- Forum: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11) +--- Thread: how to pause sound? (/showthread.php?tid=6598) |
how to pause sound? - Av23 - 06-14-2011 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. RE: how to pause sound? - Sonic Boom - 06-14-2011 like you can slow down the voice in lf2.a by using F11 and F12 keys. RE: how to pause sound? - Azriel - 06-14-2011 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~ RE: how to pause sound? - Av23 - 06-14-2011 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. RE: how to pause sound? - Electric2Shock - 06-14-2011 (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. RE: how to pause sound? - Silverthorn - 06-15-2011 (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. |