Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] a quick question regarding teleportation
#1
how do i adjust the distance of my character from the enemy when teleporting beside it? thx for the reply :)
Reply
Thanks given by:
#2
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.
Age ratings for movies and games (and similar) have never been a good idea.
One can learn a lot from reinventing wheels.
An unsound argument is not the same as an invalid one.
volatile in C++ does not mean thread-safe.
Do not make APIs unnecessarily asynchronous.
Make C++ operator > again
Trump is an idiot.
Reply
Thanks given by: urboyfriend
#3
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 ^^
My Creations: (Click to View)

Return (String) System.getNewsOfTheDay();
Barely active, expect slow responses. If at all.


Greetz,
Alblaka
Reply
Thanks given by: urboyfriend
#4
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>
Reply
Thanks given by:
#5
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.
[Image: UB2.gif]
FrozenFiren|Devid|Sprites

News of the day 19th Sep 10: Someone's back on track
Reply
Thanks given by: urboyfriend




Users browsing this thread: 2 Guest(s)