YesNoOk
avatar

My char has no jump sound (Read 2365 times)

Started by DeCeballos, August 22, 2021, 09:00:54 PM
Share this topic:
My char has no jump sound
New #1  August 22, 2021, 09:00:54 PM
  • *
    • Spain
Hello, I would like to know in which lines I should add the sound effects to my char for jumping and also when falling, since these animations have no sound.
Last Edit: October 17, 2021, 12:12:56 PM by DeCeballos
Re: My char has no jump sound
#2  August 23, 2021, 01:08:30 AM
  • avatar
  • **
    • USA
Find a whichever negative state (-1,-2,-3) and use this as an example.

Code:
; Play sound when jumping
[State -2, jumping]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 50 ;; Default jumping state.  Add triggers (trigger2, trigger3) for each jumping state that you want to add sound to.
value = s0,0 ;; change this to the sound for jumping.

; Play sound when landing
[State -2, landing]
type = PlaySnd
triggerall = Time = 1
trigger1 = stateno = 52 ;; Default lasnding state.  Add triggers (trigger2, trigger3) for each landing state that you want to add sound to (special moves and hops)
value = S0,1 ;; change this to the sound for landing.
channel = 1
Re: My char has no jump sound
#3  August 26, 2021, 07:05:37 PM
  • *
    • Spain
Thanks, my problem has been solved. If these codes are the ones that are put to add sounds I would like to know also what are the codes for the punches (when hitting). Is there a list with the different codes?
Re: My char has no jump sound
#4  August 26, 2021, 07:10:35 PM
  • avatar
  • **
    • USA
Playing a sound on hit is a function of hitdef.  There is documention for all of mugen's code on the internet in multiple places, including this forum.
Re: My char has no jump sound
#5  September 16, 2021, 11:31:52 AM
  • *
    • Spain
Solved.Thanks!