Little Fighter Empire - Forums
Coding 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)
+--- Thread: Coding Problem (/showthread.php?tid=9268)

Pages: 1 2 3


Coding Problem - T.O.R.N.A.D.O - 06-17-2014

Hey guys, I am back with another problem which I am not able to solve.. First take a look at this move:

Problem 1 (Solved) (Click to View)
Here is another problem regarding the same move.. The thing now is with the character.. It seems all the pictures are not appearing the way it should.. There is centerx, centery problem too which is annoying to fix..

    DC-Code:
<bmp_begin>
name: Hibari
head: sprite\sys\Others\hibari_f.bmp
small: sprite\sys\Others\hibari_s.bmp
file(0-89): sprite\sys\Others\hibari_0.bmp  w: 79  h: 79  row: 10  col: 9
file(90-94): sprite\sys\Others\hibari_1.bmp  w: 159 h: 159  row: 5  col: 1
file(95-164): sprite\sys\Others\hibari_2.bmp  w: 79  h: 79  row: 10  col: 7
file(165-194): sprite\sys\Others\hibari_3.bmp w: 159  h: 85  row: 6  col: 5
walking_frame_rate 3
walking_speed 4.000000
walking_speedz 1.320000
running_frame_rate 3
running_speed 15.000000
running_speedz 2.300000
heavy_walking_speed 3.000000
heavy_walking_speedz 1.500000
heavy_running_speed 5.000000
heavy_running_speedz 0.800000
jump_height -16.299999
jump_distance 10.000000
jump_distancez 3.750000
dash_height -12.000000
dash_distance 15.000000
dash_distancez 3.750000
rowing_height -2.000000
rowing_distance 16.000000
<bmp_end>
 
<frame> 270 box_roll1
   pic: 170 state: 15  wait: 1  next: 271 dvx: 0  dvy: 0  centerx: 73  centery: 86 hit_a: 0  hit_d: 0  hit_j: 0 mp: 55
   bdy:
      kind: 0  x: 19  y: 56  w: 30  h: 24
   bdy_end:
  bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
  bdy_end:
  bdy:
      kind: 0  x: 21  y: 60000  w: 43  h: 62
  bdy_end:
<frame_end>
<frame> 271 box_roll1
   pic: 171 state: 15  wait: 1  next: 272 dvx: 0  dvy: 0 centerx: 82 centery: 86 hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 25  w: 30  h: 55
   bdy_end:
  bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
  bdy_end:
  bdy:
      kind: 0  x: 21  y: 60000  w: 43  h: 62
  bdy_end:
<frame_end>
<frame> 272 box_roll1
   pic: 172 state: 15  wait: 1  next: 273 dvx: 0  dvy: 0 centerx: 82 centery: 86 hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 25  w: 30  h: 55
   bdy_end:
  bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
  bdy_end:
  bdy:
      kind: 0  x: 21  y: 60000  w: 43  h: 62
  bdy_end:
<frame_end>
<frame> 273 box_roll1
   pic: 173 state: 15  wait: 1  next: 274 dvx: 0  dvy: 0 centerx: 83 centery: 86 hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 25  w: 30  h: 55
   bdy_end:
  bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
  bdy_end:
  bdy:
      kind: 0  x: 21  y: 60000  w: 43  h: 62
  bdy_end:
<frame_end>
<frame> 274 box_roll1
   pic: 174 state: 15  wait: 1  next: 275 dvx: 0  dvy: 0 centerx: 88 centery: 86 hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 25  w: 30  h: 55
   bdy_end:
  bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
  bdy_end:
  bdy:
      kind: 0  x: 21  y: 60000  w: 43  h: 62
  bdy_end:
<frame_end>
<frame> 275 box_roll1
   pic: 175 state: 15  wait: 1  next: 276 dvx: 0  dvy: 0 centerx: 73 centery: 86 hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 25  w: 30  h: 55
   bdy_end:
  bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
  bdy_end:
  bdy:
      kind: 0  x: 21  y: 60000  w: 43  h: 62
  bdy_end:
<frame_end>
<frame> 276 box_roll1
   pic: 176 state: 15  wait: 1  next: 277 dvx: 0  dvy: 0 centerx: 83 centery: 86 hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 25  w: 30  h: 55
   bdy_end:
  bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
  bdy_end:
  bdy:
      kind: 0  x: 21  y: 60000  w: 43  h: 62
  bdy_end:
<frame_end>
<frame> 277 box_roll1
   pic: 177 state: 15  wait: 1  next: 278 dvx: 0  dvy: 0 centerx: 83 centery: 86 hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 25  w: 30  h: 55
   bdy_end:
  bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
  bdy_end:
  bdy:
      kind: 0  x: 21  y: 60000  w: 43  h: 62
  bdy_end:
<frame_end>
<frame> 278 box_roll1
   pic: 178 state: 15  wait: 1  next: 279 dvx: 0  dvy: 0 centerx: 84 centery: 86 hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 25  w: 30  h: 55
   bdy_end:
   opoint:
      kind: 1  x: 97  y: 45  action: 110  dvx: 0  dvy: 0  oid: 207  facing: 0
   opoint_end:
  bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
  bdy_end:
  bdy:
      kind: 0  x: 21  y: 60000  w: 43  h: 62
  bdy_end:
<frame_end>
<frame> 279 box_roll1
   pic: 179 state: 15  wait: 1  next: 999 dvx: 0  dvy: 0 centerx: 87 centery: 86 hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 17  y: 25  w: 30  h: 55
   bdy_end:
  bdy:
      kind: 0  x: 21  y: 80000  w: 43  h: 62
  bdy_end:
  bdy:
      kind: 0  x: 21  y: 60000  w: 43  h: 62
  bdy_end:
<frame_end>


And here are its sprites..




RE: Coding Problem - STM1993 - 06-17-2014

I don't see any problems with the code. It seems that the sprite merely disappears and that the ball can hit during that invisible portion? Can you show the code where it says something like:
    DC-Code:
<bmp_begin>
file(0-11): sprite\sys\bat_ball.bmp w: 129  h: 34  row: 4  col: 2

You need to put row: 5 col: 2 in this case.


RE: Coding Problem - empirefantasy - 06-17-2014

well it might be also w and h problem, be careful when calculating always dont forget to add 1 pixel which separate pics. the easiest solution in this case would be to extend your sprite's width (just with some pixels).


RE: Coding Problem - T.O.R.N.A.D.O - 06-17-2014

(06-17-2014, 11:20 AM)STM1993 Wrote:  I don't see any problems with the code. It seems that the sprite merely disappears and that the ball can hit during that invisible portion? Can you show the code where it says something like:
    DC-Code:
<bmp_begin>
file(0-11): sprite\sys\bat_ball.bmp w: 129  h: 34  row: 4  col: 2

You need to put row: 5 col: 2 in this case.

Yeah it can hit during invisible portion too.. Here it is and it is same as you say it should be..
Code:
file(17-26): sprite\sys\Others\roll1.bmp  w: 122  h: 116  row: 5  col: 2

@above, I honestly don't have any idea what are you saying and how should we do it...




RE: Coding Problem - AmadisLFE - 06-17-2014

Itachi, crop the one part of the picture, check with what program you are using, like Paint or Photofiltre, best is paint, then type in the amount specified like.
Photofiltre Tut:
1. Take the Pic.
2. Crop it.
3. Press Ctrl+H
4. Now look at the window, it will say how big the file is.
5. Type in the amount you got, replacing the already placed numbers.


RE: Coding Problem - T.O.R.N.A.D.O - 06-17-2014

Ehh.. What did you actually mean?


RE: Coding Problem - AmadisLFE - 06-17-2014

Um, in other words, open Photofiltre,crop the 1 part of the Image. then click image on the toolbar in photofiltre, then click image size, you will see how big the image is, in this case w: 79 h: 79

so

    DC-Code:
file(0-69): sprite\template\0.bmp w: 79  h: 79  row: 10  col: 7


do you get it?


RE: Coding Problem - A-Man - 06-17-2014

Subtract 5 from all of your pic numbers. Your ball seems to start with sprite 5 instead of 0.


RE: Coding Problem - mfc - 06-17-2014

Well, your code works. I changed file(17-26) to file(0-9) because i dont have previous portion. and it works with no disappears. I think what's wrong with yours is

    DC-Code:
....
....
file(17-26): sprite\sys\roll1.bmp  w: 122  h: 116  row: 5  col: 2

part.
You have miscalculated the number of previous frames.
If you send that part completely, I can tell.
It works for me (Click to View)



RE: Coding Problem - T.O.R.N.A.D.O - 06-17-2014

Here:

    DC-Code:
<bmp_begin>
file(0-4): sprite\sys\Others\tsunah_flame.bmp  w: 160  h: 151  row: 5  col: 1
file(5-8): sprite\sys\Others\tsunah_mug.bmp  w: 243  h: 192  row: 4  col: 1
file(9-12): sprite\sys\Others\wind_2.bmp  w: 181  h: 122  row: 4  col: 1
file(17-26): sprite\sys\Others\roll1.bmp  w: 122  h: 116  row: 5  col: 2
<bmp_end>


I left picture from 13-16... But that shouldn't be a problem I guess..