Little Fighter Empire - Forums
[solved] a quick question regarding teleportation - 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] a quick question regarding teleportation (/showthread.php?tid=4837)



[solved] a quick question regarding teleportation - urboyfriend - 04-17-2010

how do i adjust the distance of my character from the enemy when teleporting beside it? thx for the reply :)


RE: a quick question regarding teleportation - Som1Lse - 04-17-2010

You can use a dvx: ??? in the frame after you teleport together with a wait: 0 and in the frame after you teleport use dvx: 550.
The highter the first dvx: the closer to the enemy you will appear, the lower the farther away you appear.


RE: a quick question regarding teleportation - Alblaka - 04-17-2010

Btw, if you use state:400 to teleport to an enemy, you will appear in 120px distance (therefore, if you want to appear in punching range, you should use dvx 90-100).
Teleporting to allies with state: 401 will make you appear in 60px distance ^^


RE: a quick question regarding teleportation - urboyfriend - 04-20-2010

err, to be honest, i didnt get all of that sorry, =/ thx for the answers though

btw i made a dirty fix by making a slide effect towards the enemy after teleporting beside them

Code:
<frame> 283 teleport
   pic: 176  state: 400  wait: 1  next: 284  dvx: 10   dvy: 0  dvz: 0  centerx: 39  centery: 91  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 57  y: 57  weaponact: 23  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
<frame_end>

<frame> 284 teleport
   pic: 175  state: 15  wait: 1  next: 285  dvx: 10  dvy: 0  dvz: 0  centerx: 39  centery: 82  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 58  y: 61  weaponact: 23  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
<frame_end>



RE: a quick question regarding teleportation - forgetlatios - 04-20-2010

just substitute the first frame's dvx 10 with dvx 120(for enemy) or 60(for ally) to appear at the exact location where they are. in the second frame use dvx 550 to stop him. please use the code=dc tags.