LavaLit
OpenBoR => Help & Resources => Topic started 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!
-
Post your txt so it will be easier to find the problem.
-
#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
-
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
-
Ok gotcha, it worked! Thanks for the help!