LavaLit

OpenBoR => Help & Resources => Topic started by: B.Kardi on December 05, 2012, 09:16:11 pm

Title: blockfx help
Post by: B.Kardi on December 05, 2012, 09:16:11 pm
Hey guys,

So i activated the block button in place of using a special and am currently fine tuning it by adding in the blockflash and blockfx properties. I was able to get the blockflash animation to start playing correctly on a successful block but for some reason the blockfx command is not working.

I double checked that the path was correct by changing "blockfx {path}" to "sound {path}" and sure enough when i press and hold the block button the sound plays on loop until i release it, but when I change it back to "blockfx" it doesn't make the sound on a successful block. I am not sure what I am doing wrong. If anyone can help that would be great!

Thanks guys!
Title: Re: blockfx help
Post by: utunnels on December 05, 2012, 09:25:31 pm
Post your txt so it will be easier to find the problem.
Title: Re: blockfx help
Post by: B.Kardi on December 05, 2012, 10:02:45 pm
#Adding some blocking in here
anim block
   loop 1
   blockfx    data/sounds/guard.wav 
   bbox      61 33 42 58   
   blockflash   DBFlash
   delay   18
   offset   101 101
   frame   data/chars/ninjared/spec4.gif
   offset   101 105
   frame   data/chars/ninjared/spec5.gif
   offset   99 108
   frame   data/chars/ninjared/spec6.gif
Title: Re: blockfx help
Post by: utunnels on December 05, 2012, 11:07:28 pm
Blockfx and blockflash should be attack commands.

That means you should put them in the attacker's attack instead.

anim attack1
   range   10 70
   loop   0
   delay   7
   offset   37 177
   bbox   27 82 31 95
   frame   data/chars/k/punch1.gif
   attack   57 81 43 15 12
        blockflash   DBFlash
        blockfx    data/sounds/guard.wav
   frame   data/chars/k/punch2.gif
   frame   data/chars/k/punch3.gif
   attack   0 0 0 0 0
   frame   data/chars/k/punch4.gif
   frame   data/chars/k/punch5.gif
   frame   data/chars/k/punch6.gif
Title: Re: blockfx help
Post by: B.Kardi on December 06, 2012, 04:09:14 pm
Ok gotcha, it worked! Thanks for the help!
SimplePortal 2.3.3 © 2008-2010, SimplePortal