collapse

Author Topic: How do I assign a sound to an attack?  (Read 946 times)

0 Members and 2 Guests are viewing this topic.

Offline Alexziq

  • Infinite Loyalist
  • *****
  • Posts: 2624
  • Last Login:November 10, 2017, 01:10:16 PM
    • Email
How do I assign a sound to an attack?
« 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?



Offline The Rippah, Roo'Jizah Panzermanathod

  • Infinity Regular
  • ****
  • Posts: 931
  • Last Login:December 02, 2009, 03:48:41 PM
  • No place for Panzer to call home.
    • Email
Re: How do I assign a sound to an attack?
« Reply #1 on: August 13, 2007, 03:08:14 PM »
[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.
Punctuation and capitalization can make the difference between "I helped my uncle, Jack, off a horse," and, "I helped my uncle jack off a horse."

92% of people have moved onto rap. If you're part of the 8% who thinks rap isn't music, sucks to be you.

Most newer stuff sucks, though.

Offline Error Macro

  • Never finishes anything
  • MUGEN Content Architect
  • *****
  • Posts: 1861
  • Country: United States us
  • Last Login:May 30, 2022, 05:37:56 AM
    • :)
    • Email
Re: How do I assign a sound to an attack?
« Reply #2 on: August 13, 2007, 03:13:33 PM »
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.

Offline The Rippah, Roo'Jizah Panzermanathod

  • Infinity Regular
  • ****
  • Posts: 931
  • Last Login:December 02, 2009, 03:48:41 PM
  • No place for Panzer to call home.
    • Email
Re: How do I assign a sound to an attack?
« Reply #3 on: August 13, 2007, 03:21:31 PM »
I don't think the "S" is needed. Ah well.
Punctuation and capitalization can make the difference between "I helped my uncle, Jack, off a horse," and, "I helped my uncle jack off a horse."

92% of people have moved onto rap. If you're part of the 8% who thinks rap isn't music, sucks to be you.

Most newer stuff sucks, though.

Offline Alexziq

  • Infinite Loyalist
  • *****
  • Posts: 2624
  • Last Login:November 10, 2017, 01:10:16 PM
    • Email
Re: How do I assign a sound to an attack?
« Reply #4 on: August 13, 2007, 03:31:15 PM »
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?
« Last Edit: August 13, 2007, 03:32:53 PM by ALEXZIQ »

Offline Error Macro

  • Never finishes anything
  • MUGEN Content Architect
  • *****
  • Posts: 1861
  • Country: United States us
  • Last Login:May 30, 2022, 05:37:56 AM
    • :)
    • Email
Re: How do I assign a sound to an attack?
« Reply #5 on: August 13, 2007, 03:32:14 PM »
Yes

Offline Alexziq

  • Infinite Loyalist
  • *****
  • Posts: 2624
  • Last Login:November 10, 2017, 01:10:16 PM
    • Email
Re: How do I assign a sound to an attack?
« Reply #6 on: August 13, 2007, 05:14:57 PM »
[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?

Offline Error Macro

  • Never finishes anything
  • MUGEN Content Architect
  • *****
  • Posts: 1861
  • Country: United States us
  • Last Login:May 30, 2022, 05:37:56 AM
    • :)
    • Email
Re: How do I assign a sound to an attack?
« Reply #7 on: August 13, 2007, 05:18:15 PM »
No, you can put that anywhere in the state the sound be played in.

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

D2TD VS Showcase Thread by D2TD
[November 24, 2024, 09:12:03 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by LightFlare
[November 21, 2024, 09:44:09 PM]


Terrordrome: Rise of the Boogeymen Extended Version ( jeepers creepers) version by leonardo
[November 19, 2024, 10:22:47 PM]


Hill of the Nameless(1.1 Only) by Vegaz by LightFlare
[November 19, 2024, 10:50:39 AM]


Golden Axe Returns by gokudo99
[November 19, 2024, 03:59:31 AM]


Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]

* IMT Calendar

November 2024
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 [27] 28 29 30

SimplePortal 2.3.5 © 2008-2012, SimplePortal