Stop Looping sound

theoz

New member
Like you can see in this video the loop of runing sound is not nice, its boring (dadadadadadada)

I need stop this loop sound in running attack ,So I used this in runing animation
Code:
anim	run
	offset	44 83
	loop	1
	delay	5
	OffSet	27 86
	bbox	96 1 -89 84
	hitfx	data/sounds/beat1.wav
	sound	data/chars/Norimaro/sp.wav
	Frame	data/chars/Norimaro/run1.gif
	Frame	data/chars/Norimaro/run2.gif
	attack	45 0 49 83 2 0 1 0 0 40
	Frame	data/chars/Norimaro/run1.gif
	Frame	data/chars/Norimaro/run2.gif

Put "Loop 0", do not work, he stop in the last animation

If I increase the number of images to delay the loop, the attack frequence  is impaired ....

If I copy the number of attacks ahead, it's do not work:

Code:
attack	45 0 49 83 2 0 1 0 0 40
	Frame	data/chars/Norimaro/run1.gif
	Frame	data/chars/Norimaro/run2.gif

attack	45 0 49 83 2 0 1 0 0 40
	Frame	data/chars/Norimaro/run1.gif
	Frame	data/chars/Norimaro/run2.gif

attack	45 0 49 83 2 0 1 0 0 40
	Frame	data/chars/Norimaro/run1.gif
	Frame	data/chars/Norimaro/run2.gif

attack	45 0 49 83 2 0 1 0 0 40
	Frame	data/chars/Norimaro/run1.gif
	Frame	data/chars/Norimaro/run2.gif

Repet attack colison to extend the loop Do not work.

If I modifc the sound file, puting silence - sound - silence, it bug, when he stop runing he continues to sound ( daaaaa silence daaaa silence daaaa)

So...What can I do to LOOP this sound ONE TIME in runing attack? Any Idea?
 
You can also use a sound editor do shorten the sound to about the lengh of the animation and try it then it won't loop.  A lot of the times the sound loops is because the sound is way too long for the animation so it still plays after the animation.  O's method is easy but sometimes if it don't have a loop and does this try to change the length of the sound.
 
O Ilusionista said:
use
loop {bi} {start} {end}
And put the sound on the first frame only.

in your run animation, it should be
LOOP 1 1 2

Man work Perfectly, Many Thanks

So the runing attack was not afected, and stop looping (dadadada) work

Code:
anim	run
	offset	44 83
	delay	5
	OffSet	27 86
	#loop {bi} {start} {end}
	loop	1 2 4
	bbox	96 1 -89 84
	hitfx	data/sounds/beat1.wav
	sound	data/chars/Norimaro/sp.wav
	Frame	data/chars/Norimaro/run1.gif
	Frame	data/chars/Norimaro/run1.gif
	Frame	data/chars/Norimaro/run2.gif
	attack	45 0 49 83 2 0 1 0 0 40
	Frame	data/chars/Norimaro/run1.gif
	Frame	data/chars/Norimaro/run2.gif
;D ;)
 
Back
Top Bottom