Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'hit_back:'
#11
Bump.

I tried implementing this to a defend frame. Holding back should cause the character to remain defended until released. For some reason it doesn't work despite having the mp tags and hit_d in all the right places. The code is below:
    DC-Code:
<frame> 260 D
pic: 5 state: 3 wait: 1 next: 261 centerx: 79 centery: 72 mp: 1
hit_a: 66 hit_j: 103 hit_Uj: 241 hit_Dj: 251 hit_Ua: 241 hit_Fj: 0 hit_Da: 0
wpoint:
kind: 1 x: 90 y: 44 weaponact: 20 attacking: 0 cover: 0
wpoint_end:
bdy:
kind: 0  x: 62  y: 45  w: 32  h: 28
bdy_end:
<frame_end>
<frame> 261 D_hold
pic: 5 state: 3 wait: 3 next: 263 centerx: 79 centery: 72 mp: -1
hit_d: 262 hit_a: 66 hit_j: 103 hit_Uj: 241 hit_Dj: 251 hit_Ua: 241 hit_Fj: 0 hit_Da: 0
wpoint:
kind: 1 x: 90 y: 44 weaponact: 20 attacking: 0 cover: 0
wpoint_end:
bdy:
kind: 0  x: 62  y: 45  w: 32  h: 28
bdy_end:
<frame_end>
<frame> 262 D_back
pic: 5 state: 7 wait: 1 next: 261 centerx: 79 centery: 72 mp: 99999
hit_a: 66 hit_j: 103 hit_Uj: 241 hit_Dj: 251 hit_Ua: 241 hit_Fj: 0 hit_Da: 0
wpoint:
kind: 1 x: 90 y: 44 weaponact: 20 attacking: 0 cover: 0
wpoint_end:
bdy:
kind: 0  x: 62  y: 45  w: 32  h: 28
bdy_end:
<frame_end>
<frame> 263 D_end
pic: 5 state: 7 wait: 1 next: 999 centerx: 79 centery: 72
hit_a: 66 hit_j: 103 hit_Uj: 241 hit_Dj: 251 hit_Ua: 241 hit_Fj: 0 hit_Da: 0
wpoint:
kind: 1 x: 90 y: 44 weaponact: 20 attacking: 0 cover: 0
wpoint_end:
bdy:
kind: 0  x: 62  y: 45  w: 32  h: 28
bdy_end:
<frame_end>

I've also done some troubleshooting with next: -261 in frame 262 and made the wait 11 to ensure that it is not simply a case of me pressing the back button too slow. The character did not change direction when I press D. I'm not sure what is wrong with the code.


Just to clear up some loose ends, here is frame 0 and frame 110. I was using the DA double input and it works fine.
    DC-Code:
<frame> 0 standing
pic: 0 state: 0 wait: 5 next: 0 centerx: 79 centery: 72 hit_d: 260
hit_j: 209 hit_Uj: 241 hit_Dj: 251 hit_Ua: 241 hit_Fj: 0 hit_Da: 0
wpoint:
kind: 1 x: 90 y: 30 weaponact: 20 attacking: 0 cover: 0
wpoint_end:
bdy:
kind: 0  x: 62  y: 13  w: 32  h: 60
bdy_end:
<frame_end>
 
<frame> 110 DA
pic: 0 state: 3 wait: 1 next: 66 centerx: 79 centery: 72
hit_j: 209 hit_Uj: 241 hit_Dj: 251 hit_Ua: 241 hit_Fj: 0 hit_Da: 0
wpoint:
kind: 1 x: 90 y: 30 weaponact: 20 attacking: 0 cover: 0
wpoint_end:
bdy:
kind: 0  x: 62  y: 13  w: 32  h: 60
bdy_end:
<frame_end>
[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:
#12
Use a high wait (5~10) and a different pic on every frame for trouble shooting. No F6 and no negative next.
(02-23-2014, 11:34 AM)STM1993 Wrote:  The character did not change direction when I press D. I'm not sure what is wrong with the code.
Also about that: probably because you do not have the required 990hp and 999mp, which is intentional. You are supposed to press left or right against your facing direction.
If you want to test it with the defend key you need to enable F6.
Reply
Thanks given by: STM1993
#13
(02-23-2014, 11:51 AM)YinYin Wrote:  Use a high wait (5~10) and a different pic on every frame for trouble shooting. No F6 and no negative next.
(02-23-2014, 11:34 AM)STM1993 Wrote:  The character did not change direction when I press D. I'm not sure what is wrong with the code.
Also about that: probably because you do not have the required 990hp and 999mp, which is intentional. You are supposed to press left or right against your facing direction.
If you want to test it with the defend key you need to enable F6.
Okay, I think I found the problem.

    DC-Code:
<frame> 260 D
pic: 20 state: 3 wait: 15 next: 261 centerx: 79 centery: 72
<frame_end>
<frame> 261 D_hold
pic: 10 state: 3 wait: 15 next: 263 centerx: 79 centery: 72 mp: -1 hit_d: 262
<frame_end>
<frame> 262 D_back
pic: 11 state: 7 wait: 15 next: 261 centerx: 79 centery: 72 mp: 99999
<frame_end>
<frame> 263 D_end
pic: 12 state: 3 wait: 15 next: 999 centerx: 79 centery: 72
<frame_end>

Without F6.
If I don't press anything, it'd go from 260, 261, 263.
If I hold back during 260, I'd reach 262, and will go to 261 when I release, then 263.
If I hold back during 261, it refuses to move to 262.
With F6, it will completely ignore my back command, but will respond to D.

In other words, I have to input back before the mp -1 frame. My mistake is in assuming that it needs to be held on the mp: -1 frame.
[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:
#14
Yup - that's it.

edit: To clarify: It needs to be held while entering the mp: -1 frame, which will then instantly redirect to its hit_d:
Reply
Thanks given by:




Users browsing this thread: 7 Guest(s)