Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Ball problem..
#1
[Image: 32215289.gif]
ball not move when hitting box.....
sorry i'm bad english

    DC-Code:
<bmp_begin>
file(0-99): data\KKija\KKija_star.bmp  w: 48  h: 48  row: 10  col: 10
weapon_hit_sound: data\027.wav
weapon_drop_sound: data\026.wav
weapon_broken_sound: data\026.wav
<bmp_end>
 
<frame> 0 flying
   pic: 10  state: 3000  wait: 1  next: 1  dvx: 20  dvy: 0 centerx: 23  centery: 24  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 28  y: 23  w: 18  h: 18  dvx: 6  dvy: 0  fall: 12 bdefend: 30  vrest: 30  injury: 15  effect: 1
   itr_end:
   bdy:
      kind: 0  x: 28  y: 23  w: 55  h: 27
   bdy_end:
<frame_end>
 
<frame> 1 flying
   pic: 10  state: 3000  wait: 1  next: 0  dvx: 20  dvy: 0 centerx: 23  centery: 24  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 0  x: 28  y: 23  w: 18  h: 18  dvx: 6  dvy: 0  fall: 12 bdefend: 30  vrest: 30  injury: 15  effect: 1
   itr_end:
   bdy:
      kind: 0  x: 28  y: 23  w: 55  h: 27
   bdy_end:
<frame_end>
 
<frame> 10 hiting
   pic: 11  state: 3001  wait: 1  next: 11  dvx: 0  dvy: 0  centerx: 23  centery: 24 hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 11 hiting
   pic: 12  state: 3001  wait: 1  next: 12  dvx: 0  dvy: 0  centerx: 23  centery: 24  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 12 hiting
   pic: 13  state: 3001  wait: 1  next: 1000  dvx: 0  dvy: 0  centerx: 23  centery: 24  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 20 hit
   pic: 11  state: 3002  wait: 1  next: 21  dvx: 0  dvy: 0  centerx: 23  centery: 24 hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 21 hit
   pic: 12  state: 3002  wait: 1  next: 22  dvx: 0  dvy: 0  centerx: 23  centery: 24  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 22 hit
   pic: 13  state: 3002  wait: 1  next: 1000  dvx: 0  dvy: 0  centerx: 23  centery: 24  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
Reply
Thanks given by:
#2
thats because the body of the ball is hitting the box before the itr can do that. you have to set the w and h of the body and the itr the same.
Reply
Thanks given by: kieutuan
#3
Hmm, you need to make the bdy smaller than your itr :)
Quote of the Day f***ing Year (Click to View)
Reply
Thanks given by: kieutuan
#4
thanks......
Reply
Thanks given by:
#5
yes,exactly the bdy and itr W and H are the same,u should make the itr w: 22,
and the h: 22,
solved,:d
My Releases (Click to View)
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)