Thread Rating:
  • 3 Vote(s) - 1.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
State for bg music
#1
2.0 
so, my question:
it's possible to create state, that will replace current plaing music for sound that we have in frame

for example:
we're start level and it's play bgm/boss2.wma

in code of character, when it use special frame, background music will be replaced on data/extra.wav, if frame have state 666

<frame> pic: 1 state: 666 dvx: 0 dvy: 0 (e.c.t.)
sound: data/extra.wav
<frame_end>

just example.
it's possible to realize, or 100% have not chance for smth like this?
Reply
Thanks given by:
#2
<phase> bound: 1500 #blahblahblah
music: data/extra.wav
<phase_end>

try this in stage.dat instead - inside the phase where you want to change it

edit: might not work with wave files - i dont know
if it doesnt you should rather use extra.wma



wait a second - is the purpose of this having different bg music for each character when you start the game?
Reply
Thanks given by:
#3
(09-23-2009, 11:47 AM)YinYin Wrote:  wait a second - is the purpose of this having different bg music for each character when you start the game?
I'd say only when a certain char's in frame xyz.

Well, that should be easy... I think

    DC-Code:
<frame> 350 rwar
   pic: 0  state: 15  wait: 5  next: 351  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  music: data\rwar.wma
   bpoint:
      x: 43  y: 38
   bpoint_end:
   wpoint:
      kind: 1  x: 23  y: 46  weaponact: 35  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 21  y: 18  w: 43  h: 62
   bdy_end:
<frame_end>

Haven't tested, tho. In case it works, please remember that this file will be played until a new music-tag appears (whether stage-mode or from a different char).
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by: Bamboori
#4
I think Yinseko means he wants to change the stage music at runtime via a new state in a character's current frame. He wants to learn how to add this new state via HEX (hence it's in HEX section). Silva'll come (hopefully).
Hiding users' signatures and avatars was the best decision ever.
4ye 6anDy (Click to View)
We're watching you... (Click to View)
| Avatar made by Alectric |
Reply
Thanks given by:
#5
like blow_fly98 said )

change playing music of runtime battle (stage, VS , e.c.t.) if char activate it
i just see this method like this:
- if frame have special state => change music of current battle from played bg music to sound that stated in frame
- if frame have any other state => just play sound like it happens usual (without replace current music)
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)