Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Double Jump Problem
#1
:mad: 
I added a double jump to a character and then when i pressed "JUMP" once it directly went to the double jump frames.. NO FIRST JUMP!

codes:

JUMP :
    DC-Code:
<frame> 210 jump
   pic: 60  state: 4  wait: 1  next: 211  dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 26 y: 65 weaponact: 21  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 33  y: 33  w: 20  h: 48
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>
 
<frame> 211 jump
   pic: 61  state: 4  wait: 1  next: 212  dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\017.wav 
   wpoint:
      kind: 1  x: 20 y: 59 weaponact: 21  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 15  y: 41  w: 48  h: 20
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>
 
<frame> 212 jump
   pic: 62  state: 4  wait: 1  next: 0  dvx: 0  dvy: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 75
   wpoint:
      kind: 1  x: 23 y: 54 weaponact: 21  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 31  y: 15  w: 21  h: 64
   bdy_end:
   bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
   bdy_end:
<frame_end>


JUMP 2:

    DC-Code:
<frame> 75 jump_2
   pic: 61  state: 15  wait: 0 next: 76  dvx: 0  dvy: 550  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 mp: 25  
 wpoint:
      kind: 1  x: 45  y: 51  weaponact: 22  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 21  y: 38  w: 40  h: 43
   bdy_end:
<frame_end>
 
<frame> 76 jump_2
   pic: 49  state: 15  wait: 0 next: 77  dvx: 0  dvy: -6  dvz: 2  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0  
 wpoint:
      kind: 1  x: 45  y: 51  weaponact: 22  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 40  w: 34  h: 40
   bdy_end:
   itr:
      kind: 0  x: 18  y: 31  w: 48  h: 53
   itr_end:
<frame_end>
 
<frame> 77 jump_2
   pic: 58  state: 15  wait: 0 next: 78  dvx: 0  dvy: 0  dvz: 2  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 
 wpoint:
      kind: 1  x: 45  y: 51  weaponact: 22  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 40  w: 34  h: 40
   bdy_end:
   itr:
      kind: 0  x: 18  y: 31  w: 48  h: 53
   itr_end:
<frame_end>
 
<frame> 78 jump_2
   pic: 59  state: 15  wait: 0 next: 79  dvx: 0  dvy: 0  dvz: 2  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 
 wpoint:
      kind: 1  x: 45  y: 51  weaponact: 22  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 40  w: 34  h: 40
   bdy_end:
   itr:
      kind: 0  x: 18  y: 31  w: 48  h: 53
   itr_end:
<frame_end>
 
<frame> 79 jump_2
   pic: 69  state: 15  wait: 0 next: 77  dvx: 0  dvy: 0  dvz: 2  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0  
 wpoint:
      kind: 1  x: 45  y: 51  weaponact: 22  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 40  w: 34  h: 40
   bdy_end:
   itr:
      kind: 0  x: 18  y: 31  w: 48  h: 53
   itr_end:
<frame_end>


Please HELP!
Reply
Thanks given by:
#2
I suggest to you to use next: instead of hit_j:
In this way he will go automatically to jump2.
Reply
Thanks given by:
#3
The problem most likely is that when pressing jump, until the character reaches frame 212 the game still thinks jump is pressed, so he goes to hit_j.

A workaround could be (not too sure) that you create a copy of your frame 212 (jump) without the hit_j, and have that one have a bit of a wait and next: 212. (Frame 211 should lead to that copy frame.) This should prevent the char from double-jumping immediately. Try experimenting around a little.
Quote of the Day f***ing Year (Click to View)
Reply
Thanks given by:
#4
Change first jump frame to wait 2.
[Image: variaboss.png]
SUPER B*NER: :3
Reply
Thanks given by:
#5
This can also be solved by putting hit_j: 211 in frame 210.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)