Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Double Jump problem
#1
Hi i've wanted to make second jump after clicking jump button, but when I make the first jump my char make automaticaly the second (without me clicking anything...) do you know where did I make mistake?

First jump:
    DC-Code:
<frame> 210 jump
   pic: 60  state: 4  wait: 1  next: 211  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 43  y: 63  weaponact: 21  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 22  y: 24  w: 35  h: 58
   bdy_end:
   bdy: #placecorrection for backtransformer
      kind: 0  x: -5000  y: 1000  w: 10000  h: 500
   bdy_end:
<frame_end>
 
<frame> 211 jump
   pic: 61  state: 4  wait: 1  next: 212  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\017.wav 
   wpoint:
      kind: 1  x: 43  y: 64  weaponact: 21  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 26  y: 26  w: 34  h: 56
   bdy_end:
   bdy: #placecorrection for backtransformer
      kind: 0  x: -5000  y: 1000  w: 10000  h: 500
   bdy_end:
<frame_end>
 
<frame> 212 jump
   pic: 62  state: 4  wait: 1  next: 0  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 393
   wpoint:
      kind: 1  x: 33  y: 36  weaponact: 20  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 20  y: 11  w: 29  h: 61
   bdy_end:
   bdy: #placecorrection for backtransformer
      kind: 0  x: -5000  y: 1000  w: 10000  h: 500
   bdy_end:
<frame_end>




Second:

    DC-Code:
<frame> 393 jump2
   pic: 60  state: 4  wait: 1  next: 394  dvx: 0  dvy: -3  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0  mp: 20
   wpoint:
      kind: 1  x: 43  y: 63  weaponact: 21  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 22  y: 24  w: 35  h: 58
   bdy_end:
   bdy: #placecorrection for backtransformer
      kind: 0  x: -5000  y: 1000  w: 10000  h: 500
   bdy_end:
<frame_end>
 
<frame> 394 jump2
   pic: 61  state: 4  wait: 1  next: 395  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\013.wav 
   wpoint:
      kind: 1  x: 43  y: 64  weaponact: 21  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 26  y: 26  w: 34  h: 56
   bdy_end:
   bdy: #placecorrection for backtransformer
      kind: 0  x: -5000  y: 1000  w: 10000  h: 500
   bdy_end:
<frame_end>
 
<frame> 395 jump2
   pic: 62  state: 4  wait: 1  next: 0  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bpoint:
      x: 38  y: 28
   bpoint_end:
   wpoint:
      kind: 1  x: 33  y: 36  weaponact: 20  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 20  y: 11  w: 29  h: 61
   bdy_end:
   bdy: #placecorrection for backtransformer
      kind: 0  x: -5000  y: 1000  w: 10000  h: 500
   bdy_end:
<frame_end>

Reply
Thanks given by:
#2
Yay I logged in here just in time for this =P

Apparently it's because the frames happen too fast that the game reads your "jump" twice.

This would solve the problem:

    DC-Code:
<frame> 212 jump
   pic: 62  state: 4  wait: 2  next: ###  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 33  y: 36  weaponact: 20  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 20  y: 11  w: 29  h: 61
   bdy_end:
   bdy: #placecorrection for backtransformer
      kind: 0  x: -5000  y: 1000  w: 10000  h: 500
   bdy_end:
<frame_end>
 
<frame> ### jump
   pic: 62  state: 4  wait: 1  next: 0  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 393
   wpoint:
      kind: 1  x: 33  y: 36  weaponact: 20  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 20  y: 11  w: 29  h: 61
   bdy_end:
   bdy: #placecorrection for backtransformer
      kind: 0  x: -5000  y: 1000  w: 10000  h: 500
   bdy_end:
<frame_end>
Reply
Thanks given by: luffy321
#3
It worked, problem solved.
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)