Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Problem] Opoint doesnt work
#1
Yo, im new on the forum, so sorry for any mistakes, and my lang isn perfect so...
Okay now i will explain my problem.

I made a new char, and added skill that he jump at the side that he's facing at, and after
2 seconds if you press attack he is doin sword hit with opoint of slash effect, which doesnt work.

Code:
<frame> 313 precise_strike
   pic: 36  state: 3  wait: 6  next: 314  dvx: 0  dvy: 0  dvz: 0  centerx: 26  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 14  y: 14  w: 30  h: 66
   bdy_end:
<frame_end>

<frame> 314 precise_strike
   pic: 63  state: 3  wait: 1  next: 315  dvx: 20  dvy: -3  dvz: 0  centerx: 26  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 41  y: 4  w: 36  h: 50  dvx: 15  dvy: 5  bdefend: 60  injury: 3  
      effect: 4  
   itr_end:
   bdy:
      kind: 0  x: 4  y: 16  w: 39  h: 61
   bdy_end:
<frame_end>

<frame> 315 precise_strike
   pic: 63  state: 3  wait: 0  next: 316  dvx: 10  dvy: -2  dvz: 0  centerx: 26  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 41  y: 4  w: 36  h: 50  dvx: 15  dvy: 5  bdefend: 60  injury: 3  
      effect: 4  
   itr_end:
   bdy:
      kind: 0  x: 4  y: 16  w: 39  h: 61
   bdy_end:
<frame_end>

<frame> 316 precise_strike
   pic: 63  state: 3  wait: 5  next: 317  dvx: 5  dvy: -1  dvz: 0  centerx: 26  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 41  y: 4  w: 36  h: 50  dvx: 15  dvy: 5  bdefend: 60  injury: 3  
      effect: 4  
   itr_end:
   bdy:
      kind: 0  x: 4  y: 16  w: 39  h: 61
   bdy_end:
<frame_end>

<frame> 317 precise_strike
   pic: 63  state: 3  wait: 15  next: 318  dvx: 0  dvy: 0  dvz: 0  centerx: 26  centery: 79  hit_a: 319  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 41  y: 4  w: 36  h: 50  dvx: 15  dvy: 5  bdefend: 60  injury: 3  
      effect: 4  
   itr_end:
   bdy:
      kind: 0  x: 4  y: 16  w: 39  h: 61
   bdy_end:
<frame_end>

<frame> 318 precise_strike
   pic: 36  state: 3  wait: 7  next: 999  dvx: 0  dvy: 0  dvz: 0  centerx: 26  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 9  y: 19  w: 37  h: 61
   bdy_end:
<frame_end>

<frame> 319 precise_strike2
  sound: data\114.wav
   pic: 107  state: 3  wait: 10  next: 317  dvx: 0  dvy: 0  dvz: 0  centerx: 26  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   opoint:
      kind: 1  x: 48  y: 134  action: 30  dvx: 0  dvy: 0  oid: 231  facing: 0
   opoint_end:
   bdy:
      kind: 0  x: 4  y: 16  w: 39  h: 61
   bdy_end:
<frame_end>

<frame> 399 dummy
   pic: 0  state: 0  wait: 0  next: 0  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 21  y: 18  w: 43  h: 62
   bdy_end:
<frame_end>
^here's my char dat

http://pastebin.com/qAAgM9rG < and here's onyx_aircut.dat (from 0-14 frame its other skill by the way)

http://gyazo.com/edde2c95ff976adbd2b7ddb8e3cfed08 (precise bmp)

Action is "30" so how this opoint doesnt work? Please help me.
Reply
Thanks given by:
#2
(07-20-2014, 01:53 PM)Onyx Wrote:  if you press attack he is doin sword hit with opoint of slash effect, which doesnt work.
You cannot summon an opoint on the first frame of a move(or any button input). You must always leave 1 frame before opoint works. The problem is on frame 317, pressing A will go to frame 319 directly, but because 319 is the 1st frame of the attack, the opoint will not work.

You should change your code by adding an extra frame, so it'd look like this:
    DC-Code:
<frame> 319 precise_strike2
  sound: data\114.wav 
   pic: 107  state: 3  wait: 0  next: 320  dvx: 0  dvy: 0  dvz: 0  centerx: 26  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 4  y: 16  w: 39  h: 61
   bdy_end:
<frame_end>
 
<frame> 320 precise_strike2
   pic: 107  state: 3  wait: 9  next: 317  dvx: 0  dvy: 0  dvz: 0  centerx: 26  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   opoint:
      kind: 1  x: 48  y: 134  action: 30  dvx: 0  dvy: 0  oid: 231  facing: 0
   opoint_end:
   bdy:
      kind: 0  x: 4  y: 16  w: 39  h: 61
   bdy_end:
<frame_end>

Don't worry, you won't notice the wait 0 delay because it happens so fast.
[Image: uMSShyX.png]
~Spy_The_Man1993~
Steiner v3.00 (outdated), Challenge Stage v1.51
Luigi's Easier Data-Editor, A-Man's Sprite Mirrorer
Working on the LF2 Rebalance mod.
Avatar styled by: prince_freeza
Reply
Thanks given by: Onyx , Alapottra
#3
Thanks man love u :D!
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)