Little Fighter Empire - Forums
[solved] Whirlwind that moves with character - 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)
+---- Forum: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=14)
+---- Thread: [solved] Whirlwind that moves with character (/showthread.php?tid=3578)



[solved] Whirlwind that moves with character - x90z75ek - 09-05-2009

Hi everybody I'm new here! Is it possible to create a whirlwind that moves with the character that created it and hurts everybody it touches? The character should also be able to jump out of the whirlwind and jump back in to gain control of it again.


RE: Whirlwind that moves with character - TheNave - 09-05-2009

pretty much possible, your character needs a special bdy in every frame he has
(special bdys are bdys with a huge y-value so nothing can actually reach it)
f.e.
    DC-Code:
bdy:
     kind: 0 x: 10 y: 3000 w: 50 h: 69
bdy_end:


for the whirlwind you copy theone from freeze and add a ik8 (itr kind 8 ) to it on the same y-value as your special bdy
    DC-Code:
itr:
      kind: 8  x: 5  y: 3053  w: 65  h: 54  zwidth: 37  dvx: XXX
itr_end:


on the dvx you write the next framenumber the whirlwind should go (just like what the "next" says)


and actually that's it, should work I think


RE: Whirlwind that moves with character - x90z75ek - 09-05-2009

I did this, but now the whirlwind doesn't freeze or hurt enemies, it just throws them in the air.


RE: Whirlwind that moves with character - TheNave - 09-05-2009

then you should also add this itr to it
    DC-Code:
itr:
      kind: 16  x: 15  y: 21  w: 128  h: 170  dvx: -12  dvy: -18  fall: 70  vrest: 100  bdefend: 16  injury: 75  zwidth: 30  
   itr_end:



RE: Whirlwind that moves with character - x90z75ek - 09-05-2009

Thanks, it works now.