Sound Problems...

Started by Girku, November 02, 2009, 01:44:04 AM

Previous topic - Next topic

Girku

I dunno what the problem is...but the sound that I have playing at the beginning of the code

keeps looping it self for some reason unbeknowest to me....I mean the power charge and such works perfect and it looks  pretty awesome..its just that the sound that i use for when she starts to power up keeps constantly looping....Eh who am I kidding...
I think it would just be better to show you the problem....

http://www.youtube.com/watch?v=C9rjUFxAapI

Any ideas on how  to fix it..  ???
Heres the coding

Spoiler (click to show)


[State 8330, Snd]
type=playsnd
trigger1= !time
value=S2,98
volume = 255

[State 630, power]
type=poweradd
triggerall= power<const(data.power) && power<powermax
trigger1= var(59)<=0 && (command="hold_a")
trigger2= var(59)>=1
value=2+ifelse(time<60,0,(time-60)/12)


[State 630, flash]
type=palfx
trigger1= 1
time=1
add=0+ceil(sin(time/-6.0*pi)*75),45+ceil(sin(time/-6.0*pi)*25),256

[State 630, FX]
type=helper
trigger1= !numhelper(8330)
helpertype=normal
stateno=8330
ID=8330
POS = 5,5
name="Power Charge"
postype=p1
pausemovetime=65535
supermovetime=65535
ownpal=1

[State 630, FX]
type=helper
trigger1= !numhelper(8331)
helpertype=normal
stateno=8331
ID=8331
name="Particles"
postype=p1
pausemovetime=65535
supermovetime=65535
ownpal=1

[State -2, LifeAdd]
type = LIFEAdd
trigger1 = ((GameTime%5) = 0)
value = 2
kill = 0
absolute = 150
ignorehitpause = 1
persistent = 1

[State 1200, Flames]
type = Explod
trigger1 = time >= 10
trigger1 = Timemod = 3, 2
anim = 8333
pos = 0,-30
random = 50,50
sprpriority = 10+var(9)
scale=.5,.5
ownpal = 1
accel = -0.2,-0.05
velocity = 3,-2

[State 1200, Flames]
type = Explod
trigger1 = time >= 10
trigger1 = Timemod = 3, 2
anim = 8333
pos = 0,-50
random = 50,50
sprpriority = 10+var(9)
scale=.5,.5
ownpal = 1
accel = 0.2,-0.05
velocity = -3,-2

[State 630, End]
type=changestate
trigger1= power>=const(data.power) || power>=powermax || roundstate!=2
trigger2= var(59)<=0 && (command!="hold_a")
trigger3= var(59)>=1 && (inguarddist || p2bodydist x<=120)
value=631
ctrl=1

;---END---
[Statedef 631]
type=S
physics=S
movetype=I
anim = 631
velset=0,0
ctrl=1

[State 731, stopsnd]
type=stopsnd
trigger1= !time
channel=0

[State 730, Snd]
type=playsnd
trigger1= !time && power>=const(data.power)
value=6,7
channel=0
persistent=0

[State 730, End]
type=changestate
trigger1= !animtime
value=0
ctrl=1

;----------------------------------------------------------------------------
; do not touch
[Statedef 8330]
type=A
physics=N
movetype=I
anim=9741
ctrl=0
velset=0,0

[State 8330, Bind]
type=bindtoroot
trigger1= (root,stateno=630)
pos=-7,0

[State 8330, Snd]
type=playsnd
trigger1= !time
value=0,730
channel=0

[State 1200, Flames]
type = Playsnd
trigger1 = Time = 0
Value = 7,8
channel = 2

[State 1200, Flames]
type = Playsnd
trigger1 = Timemod = 100,50
Value = 7,9
channel = 2

[State 8330, Aura]
type=explod
trigger1= !numexplod(8330)
ID=8330
anim=8330
sprpriority=3
postype=p1
bindtime=-1
removetime=-1
scale=.5,.5
pausemovetime=-1
supermovetime=-1
ownpal=1

[State 8330, FX]
type=modifyexplod
trigger1= numexplod(8330) && root,power<3000
ID=8330
scale= .5, .1 + .4*(root,power/3000.0)

[State 8330, FX]
type=modifyexplod
trigger1= numexplod(8330) && root,power>=3000
ID=8330
scale= .5, .5

[State 8330, Dust]
type=explod
trigger1= !(time%6)
anim=8332
sprpriority=-3
postype=p1
pos=0,-ceil(pos y)
scale=.6,.6
pausemovetime=-1
supermovetime=-1
ownpal=1

[State 8330, End]
type=stopsnd
trigger1= root,stateno!=630
channel=0
channel=1
channel=2

[State 8330, End]
type=removeexplod
trigger1= root,stateno!=630

[State 8330, End]
type=destroyself
trigger1= root,stateno!=630

;---Particles---
[Statedef 8331]
type=A
physics=N
movetype=I
anim=9741
ctrl=0
velset=0,0

[State 8331, Bind]
type=bindtoroot
trigger1= !(time%8)
pos=ceil(-151+(random/3.125)),ceil(98-(random/3.125))

[State 8331, Particle]
type=explod
trigger1= (time%8)=1
anim=8331
sprpriority=ifelse(random<750,10,5)
postype=p1
vel= ((rootdist x+0)/32.0), ((rootdist y-45)/32.0)
scale= ifelse(random<500,.5,-.5), ifelse(random<500,.5,-.5)
pausemovetime=-1
supermovetime=-1
ownpal=1

[State 8331, End]
type=removeexplod
trigger1= root,stateno!=630

[State 8331, End]
type=destroyself
trigger1= root,stateno!=630



Thanks in advance

ZayOsiris Gaming

It has alot to do with the channals that are added. Try Removing some of the channals and it might work. Or put some of the sounds on the same channal so it will end with the other sounds that are on the same channal. :)

Girku

#2
Quote from: Isaiah. StormEX-Team on November 02, 2009, 03:05:25 AM
It has alot to do with the channals that are added. Try Removing some of the channals and it might work. Or put some of the sounds on the same channal so it will end with the other sounds that are on the same channal. :)

Alright ill try that

Edit: I messed around with the channels....It doesnt echo anymore...but now it plays the sound after the animation is over...despite the fact that i have animelem=1 as the trigger

Girku


Cyanide

WHAT plays the sound? The character? the helper? the fact that the sound is really long? You have a playsnd in just about every one of those states.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Girku

Quote from: Cyanide on November 02, 2009, 07:16:27 AM
WHAT plays the sound? The character? the helper? the fact that the sound is really long? You have a playsnd in just about every one of those states.
The character should be playing the sound but as i said before ive fixed the looping problem...now its just getting it to play at the right time  :-\