Infinity MUGEN Team
IMT Main => M.U.G.E.N Help => Topic started by: Alexziq on August 13, 2007, 02:59:43 PM
-
I added my sounds to the sounds of my character in Fighter Factory but what designates the sprite that will signal the sound to trigger? If a laser blast emits in a special what do I put for group, and sound #'s and is there something else in the coding that has to be changed?
-
[State 220, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 1
value = 0,27
By AnimElem, it's the frame of an attack you want the sound to play. by Value, it's group, sound.
-
You put the group number for the sound in the snd file.
Say:
The laser sound is
Group 3000, 0
In the cns you would put:
[State 3000, Playsnd]
type = PlaySnd
trigger1 = animelem = 6
value = S3000,0
volume = 0
the s tells mugen that the sound is in your character's snd file
This tells what frame will trigger the sound to play.
-
I don't think the "S" is needed. Ah well.
-
Easy, awsome
Last question
(AnimElem =) this is what designates the frame or sprite in the group, right? or does it need to be the sprite number in the group?
-
Yes
-
[State 3000, Playsnd]
type = PlaySnd
trigger1 = animelem = 6
value = S3000,0
volume = 0
This formula, I assume I would put this info in the cns for the Sprite group, or anywhere?
Sorry, Im just trying to figure out how it knows what animation group its assigned to.
Say my Animation is #8, frame 1 of 6, is that what Im puttin here?
trigger8 = animelem = 1
Or am i looking for the animation group in the cns?
-
No, you can put that anywhere in the state the sound be played in.