Little Fighter Empire - Forums
[solved] criminal help (again) - 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] criminal help (again) (/showthread.php?tid=3672)



[solved] criminal help (again) - lpoi - 09-24-2009

i made a template criminal:

Code:
file(280-284): sprite\sys\criminal4.bmp  w: 79  h: 79  row: 5  col: 1

Code:
<frame> 100 template
   pic: 280  state: 0  wait: 10  next: 100  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 1101  x: 21  y: 18  w: 43  h: 62
   bdy_end:
<frame_end>

<frame> 101 template
sound: data\066.wav
   pic: 281  state: 0  wait: 1  next: 102  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

<frame> 102 template
   pic: 282  state: 0  wait: 3  next: 103  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

<frame> 103 template
   pic: 283  state: 0  wait: 3  next: 104  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

<frame> 104 template
   pic: 284  state: 0  wait: 3  next: 105  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

<frame> 105 template
   pic: 284  state: 8000  wait: 3  next: 999  dvx: 0  dvy: 0  dvz: 0  centerx: 39  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

however, in the stage mode, there is no sprite of the criminal (before you free him)


RE: criminal help (again) - Divisor - 09-24-2009

Make sure, that the picture before
Code:
file(280-284): sprite\sys\criminal4.bmp  w: 79  h: 79  row: 5  col: 1
really has 280 pics.
Other than that, I dunno what could be wrong.


RE: criminal help (again) - MH-Razen - 09-24-2009

file(280-284):

the numbers you note there are not important for the computer - the product from row and cols is.

Probably you only have the criinal.bmp in there - this has 80 sprites (0-79) - so your new image starts at 80 - whatever you note in the file(...) thing :p


RE: criminal help (again) - Hukko - 09-24-2009

The last criminal frame needs to be "next: 1000", and I think you need change the state of frames.


RE: criminal help (again) - TheNave - 09-24-2009

Quote:The last criminal frame needs to be "next: 1000", and I think you need change the state of frames.
1st, the next is the last frame doesn't matter
2nd, everything's allright with the state
3rd, it's a sprite problem only...

and Razen solved it already


RE: criminal help (again) - MH-Razen - 09-24-2009

oh - talking about the state: as far as I remember the transform into id 0 is caused with problems - so maybe change the id of template and the state to another one :p


RE: criminal help (again) - lpoi - 09-25-2009

(09-24-2009, 03:50 PM)MH-Razen Wrote:  file(280-284):

the numbers you note there are not important for the computer - the product from row and cols is.

Probably you only have the criinal.bmp in there - this has 80 sprites (0-79) - so your new image starts at 80 - whatever you note in the file(...) thing :p

there is other criminal bmp.

edit: figure out the prob. the last image product of row and col is affectin the next image. i did not product it correctly. thx for the "inspiration" by sayin "products of row and cols"

(09-24-2009, 04:18 PM)MH-Razen Wrote:  oh - talking about the state: as far as I remember the transform into id 0 is caused with problems - so maybe change the id of template and the state to another one :p
even though the sprite is not there, it still transform to template in stage mode. is it really affected? will try that one though