YesNoOk
avatar

how do you add sounds to lifebars/powerbars ect. (Read 347 times)

Started by Geese, August 08, 2008, 03:48:37 am
Share this topic:
how do you add sounds to lifebars/powerbars ect.
#1  August 08, 2008, 03:48:37 am
  • **
I have a sizeable collection of lifebars some without powerbar sounds. how do i go about adding my own to them? Kerspluh? ???
"If there is a god he pities you. If there is no god I pity you."
Re: how do you add sounds to lifebars/powerbars ect.
#2  August 08, 2008, 05:59:55 am
  • ***
  • Kohaku☆Magica
    • kohaku.trinitymugen.net
Open the fight.def of your lifebars and then scroll down to where it says [Power bar] then look for this:

level1.snd =
level2.snd =
level3.snd =

Add the numbers that correspond to the sound you want from the snd file (Fighter Factory will help with this) and place them in that line of code.

Example:
level1.snd = 21,0

Repeat up to level 9 if you desire.
Re: how do you add sounds to lifebars/powerbars ect.
#3  August 08, 2008, 09:31:13 am
  • **
Would there be any reason why this would not work at all? ive tried that and came to the conclusion that it isnt that simple. if it really is then i seem to have a technical problem with powerbar sounds specifically.


so for any lifebar. I can open fight.def scroll down to [Power bar] put in...

level#.snd = sound,group

and if the .snd file has those sounds they will play? :P


Code:
[Powerbar]

;Player 1
p1.pos    = 161,33
p1.bg0.spr = 999, 4
p1.bg0.scale = .45,.45
p1.bg0.offset = -100,-2
p1.bg1.spr = 41,0
p1.bg1.scale = .5,.5
p1.mid.anim = 998
p1.mid.scale = .5,.5
p1.mid.facing = -1
p1.front.spr = 43,0
p1.front.scale = .5,.5
p1.front.offset = -112,1
p1.range.x = -19,-111
p1.counter.offset = -85,9
p1.counter.layerno = 1
p1.counter.font = 2,0, 0

;Player 2
p2.pos    = 159,33
p2.bg0.spr = 999, 4
p2.bg0.scale = .45,.45
p2.bg0.facing = -1
p2.bg0.offset = 100,-2
p2.bg1.spr = 41,0
p2.bg1.facing = -1
p2.bg1.scale = .5,.5
p2.front.spr = 43,0
p2.front.scale = .5,.5
p2.front.offset = 1,1
p2.range.x = 17,111
p2.counter.offset = 85,9
p2.counter.layerno = 1
p2.counter.font = 2,0, 0

[Begin Action 998] ;Darkened face background
42,0, 0,0, 1;AS128D128


; --level sounds---
level1.snd = 21,0
level2.snd = 21,0 <-------- WHY WILL YOU NOT WORK!?
level3.snd = 21,0

[Begin Action 40] ;Darkened powerbar background
40,0, 0,0, 1, , S

like that?
"If there is a god he pities you. If there is no god I pity you."
Last Edit: August 08, 2008, 09:37:56 am by Dureagon
Re: how do you add sounds to lifebars/powerbars ect.
#4  August 09, 2008, 06:16:25 am
  • **
I tried it and it just doesnt seem to work. Uhhh ... i really did exactly that and there just isnt any sounds comming out when powerbars level up.
"If there is a god he pities you. If there is no god I pity you."