Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coding Problem
#11
(06-17-2014, 02:54 PM)Itachi.Byakuya Wrote:  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..
Yes it is a problem. Did you know that the file(x-y) part is completely ignored by LF2?
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by: AmadisLFE , T.O.R.N.A.D.O
#12
(06-17-2014, 02:54 PM)Itachi.Byakuya Wrote:  I left picture from 13-16... But that shouldn't be a problem I guess..
This will work. And A-Man is right, that part is being ignored. It stands there for making it easier to see while coding.
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by: T.O.R.N.A.D.O
#13
Na seriously I didn't know that! Problem Solved! Thanks guys for your help! :D
▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬
[Image: 11twnjn.png]
▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬
I need a spriter to help in my All Stars Project.. So if anyone interested, please contact me.
Reply
Thanks given by:
#14
Your welcome Itachi, have fun coding.
Spoilered Spoilers (Click to View)

You're just dying if you're living and thinking about a betrayal, revive yourself.
Think about that one person that has trusted you forever, not the thousand people that have betrayed you.
Reply
Thanks given by:
#15
Okay guys there 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..

▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬
[Image: 11twnjn.png]
▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬
I need a spriter to help in my All Stars Project.. So if anyone interested, please contact me.
Reply
Thanks given by:
#16
I am trying to understand what's wrong...
some of frames won't show sprite even though they should.
And, could you upload your sprite as bmp? you can use lfe attachment thingy
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by: T.O.R.N.A.D.O
#17
(06-17-2014, 03:38 PM)Itachi.Byakuya Wrote:  
    DC-Code:
file(165-194): sprite\sys\Others\hibari_3.bmp w: 159  h: 85  row: 6  col: 5
 
<frame> 270 box_roll1
   pic: 170


And here are its sprites..
This one is again a row problem. You have 5 sprites in a row (left to right) but you put it as 6.
[Image: uMSShyX.png]
~Spy_The_Man1993~
Steiner v3.00 (outdated), Challenge Stage v1.51
Luigi's Easier Data-Editor, A-Man's Sprite Mirrorer
Working on the LF2 Rebalance mod.
Avatar styled by: prince_freeza
Reply
Thanks given by: mfc , T.O.R.N.A.D.O
#18
(06-17-2014, 04:11 PM)STM1993 Wrote:  This one is again a row problem. You have 5 sprites in a row (left to right) but you put it as 6.

Aaaaaaaah, i got tricked! it works correctly if you swap 5 and 6.
but for centerx problem, i recommend you to align your sprite frames correctly.
edit: if you upload your sprite as bmp, i can fix centerx problem.
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by: T.O.R.N.A.D.O
#19
lol. That got me multiple times as well. col: is actually the number of rows, while row: is the number of columns. I think Marti and Starsky thought about row: being the number of sprites in a row, and col: being the number of sprites in a column.

As for the center problem, you can either use Azriel's visual frame maker, or something more advanced like LFStudio or LF2 IDE. A better and a more efficient solution (for me at least) was to use the same center values for all the frames, and re-position the sprites themselves with something like Gimp. With Gimp, you place the second sprite aligned on the first one, then you drag left/down until the transformation vector number thing in the task bar is your square width/height. Everything will be aligned perfectly after that.
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by: T.O.R.N.A.D.O
#20
(06-17-2014, 04:18 PM)xmfcx Wrote:  
(06-17-2014, 04:11 PM)STM1993 Wrote:  This one is again a row problem. You have 5 sprites in a row (left to right) but you put it as 6.

Aaaaaaaah, i got tricked! it works correctly if you swap 5 and 6.
but for centerx problem, i recommend you to align your sprite frames correctly.
edit: if you upload your sprite as bmp, i can fix centerx problem.


Here I uploaded here..

https://www.mediafire.com/?0kssrafb6o43v5g

Oh and it works perfectly (just minor centerx error is still there) when it is swapped.. Thanks again guys! :)
▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬
[Image: 11twnjn.png]
▬▬▬▬▬▬▬▬▬▬▬ஜ۩۞۩ஜ▬▬▬▬▬▬▬▬▬▬▬▬
I need a spriter to help in my All Stars Project.. So if anyone interested, please contact me.
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)