| 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 |