Need to stop SND when a move is done! - .CNS Coding help - Code Library - Blaze mugen forums
Tuesday, 2009-11-24, 1:31 Pm
Welcome Guest

Blaze M.U.G.E.N

Blaze mugen forums

[New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Blaze mugen forums » Code Library » .CNS Coding help » Need to stop SND when a move is done! (I need help stopping the sound of his move.)
Need to stop SND when a move is done!
VirusChrisDate: Tuesday, 2008-03-04, 10:53 Pm | Message # 1
Begginer
Group: Users
Messages: 15
Reputation: 0
Status: Offline
Just adding a few finishing touches to my character, but I found a problem. When he executes his Power Charge move a sound is played, but AFTER he exits out of his Power Charge state to his Standing state the sound still plays!

I put in the StopSnd state, but I'm not sure what trigger I need to put to remove the sound. He performs his Power Charge by holding down Back + A buttons. Can someone help me please?

Here's my code:

[Statedef 9650]
type = S
movetype= I
physics = S
velset = 0,0
anim = 9650
ctrl = 0

[State 9650, PowerAdd]
type = PowerAdd
trigger1 = ((GameTime%1) = 0)
value = 5
kill = 1
absolute = 0
;ignorehitpause =
;persistent =

[State 9650, 1]
type = CtrlSet
trigger1 = Command != "hold_b"
value = 1

[State 9650, Explod]
type = Explod
trigger1 = AnimElem = 1
anim = 9650
ID = 9650
pos = 0,0
postype = p1 ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = 1
vel = 0,0
accel = 0,0
random = 0,0
removetime = -4
supermove
pausemove
scale = 1,1
sprpriority = 0
ontop = 100
shadow = 0,0,0
ownpal = 0
removeongethit = 1
;ignorehitpause =
;persistent =

[State 9650, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 1
value = S100,0
volume = 100
channel = -1
;lowpriority = -1
freqmul = 1.0
loop = 0
pan = 0
;abspan =
;ignorehitpause =
;persistent =

[State 9650, StopSnd]
type = StopSnd
trigger1 = AnimElem = 1
channel = -1
;ignorehitpause =
;persistent =

[State 9650, end]
type = ChangeState
trigger1 = (command != "hold_b")
value = 0

Message edited by VirusChris - Tuesday, 2008-03-04, 11:11 Pm
 
Sir_KillzalotDate: Wednesday, 2008-03-05, 2:26 Pm | Message # 2
MuGeN Expert
Group: Users
Messages: 349
Reputation: 12
Status: Offline
make the stop sound state have the same trigger as the changestate back to stand state.
 
Blaze mugen forums » Code Library » .CNS Coding help » Need to stop SND when a move is done! (I need help stopping the sound of his move.)
Page 1 of 11
Search:

Login form
E-mail:
Password:
Site friends
Site Admins
Blazeinc (A.K.A UrOz)
Our poll
which character series are the best for mugen
Total of answers: 1007
Created By UrOz | Blazeinc