Little Fighter Empire - Forums
[solved] Ball problem.. - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: Data Changing (https://lf-empire.de/forum/forumdisplay.php?fid=11)
+---- Forum: Solved Problems (https://lf-empire.de/forum/forumdisplay.php?fid=14)
+---- Thread: [solved] Ball problem.. (/showthread.php?tid=2764)



[solved] Ball problem.. - kieutuan - 04-30-2009

[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>



RE: Ball problem.. - Bamboori - 04-30-2009

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.


RE: Ball problem.. - Ramond - 04-30-2009

Hmm, you need to make the bdy smaller than your itr :)


RE: Ball problem.. - kieutuan - 04-30-2009

thanks......


RE: Ball problem.. - Angel_Adam - 04-30-2009

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