Little Fighter Empire - Forums
Help with broken weapon - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11)
+--- Thread: Help with broken weapon (/showthread.php?tid=8188)



Help with broken weapon - The Hari - 08-19-2012

Well, i'd like to please you about help with adding broken animation to weapon. Actually i've read these two threads click and click, but first doesn't say me too much (about broken weapon ofc), and author of second, last time was active in april... last year.

(01-19-2010, 10:12 PM)YinYin Wrote:  bluna has a custom broken weapon
julio has a custom broken weapon
the sandbag has a custom broken weapon

all with weapons holding another object - not necessarily a weapon
most important is that the broken action in that object starts at frame 0 - you can there put your animation/opointing

I tried to preview .dat files of these chars, but they're kinda... complicated, so YinYin probably doesn't want to share his own work (and i don't want to be a thief).

So if someone could give really a little example how to make it? I don't want to have here ready weapon, or something like this, just clearly explanation how it works.


RE: Help with broken weapon - YinYin - 08-19-2012

first of all you need to make your weapon spawn itself an object like a weapon on hand (look at freeze' ice sword move)

the object that weapon is holding will go to frame 0 if the weapon is destroyed


RE: Help with broken weapon - The Hari - 08-19-2012

finally i understood how working Bluna's weapon, but i still have problem with my.
    DC-Code:
<frame> 20 on_ground
   pic: 2  state: 2004  wait: 0  next: 0  dvx: 0  dvy: 0  centerx: 54  centery: 56
   itr:
      kind: 14  x: 12  y: 27  w: 88  h: 30   vrest: 1
   itr_end:
   bdy:
      kind: 0  x: 52  y: 39  w: 16  h: 18
   bdy_end:
   opoint:
      kind: 2  x: 0  y: 0  action: 100  dvx: 0  dvy: 0  oid: 500  facing: 0
   opoint_end:
<frame_end>


i've added opoint: (action: doesn't matter, because it always go to frame 0, yeah?)
    DC-Code:
<frame> 0 broken
   pic: 0  state: 3005  wait: 2  next: 1  dvx: 0  dvy: 0  centerx: 64  centery: 68  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 1 broken
   pic: 1  state: 3005  wait: 2  next: 2  dvx: 0  dvy: 0  centerx: 64  centery: 68  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 2 broken
   pic: 2  state: 3005  wait: 2  next: 1000  dvx: 0  dvy: 0  centerx: 64  centery: 68  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>


and simple broken animation as type: 5. but the animation i always visible in front of weapon and appears over and over again. is it have to be like this? and btw, it's heavy weapon, if it has any meaning.


RE: Help with broken weapon - YinYin - 08-19-2012

well you need to add some wpoints: just like in a character and a weapon so it doesnt display bollocks


RE: Help with broken weapon - The Hari - 08-19-2012

Edit: i worked it out, solved.