Little Fighter Empire - Forums
[solved] Bg opoint question(s) - 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] Bg opoint question(s) (/showthread.php?tid=4281)



[solved] Bg opoint question(s) - Wiro - 01-02-2010

Hey I accidentally deleted the old topic about objects in front of the
chars in a bg. So now I need help with getting the object in ground level
and to x: 0 so it fills the whole bg
yeah and this is in perspective exe

bg data:
    DC-Code:
name: *cencored*
width: 1400   zboundary: 365 505
shadow: bg\sys\lf\s.bmp  shadowsize: 37 9
perspective: 666
 
layer: 
  bg\sys\lf\forests.bmp
  transparency: 0  width: 800  x: 0  y: 128
layer_end
layer: 
  bg\sys\lf\forestt.bmp
  transparency: 10 width: 2900  x: 0  y: 199  loop: 253
layer_end
layer: 
  bg\sys\lf\s.bmp
  rect: 4706 x: 0  y: 356  width: 794  height: 172
layer_end


weapon which spawns the object:
    DC-Code:
<bmp_begin>
file(0-99): sprite\sys\weapon1.bmp  w: 58  h: 58  row: 10  col: 10
weapon_hp: 800
weapon_drop_hurt: 200
weapon_hit_sound: data\010.wav
weapon_drop_sound: data\010.wav
weapon_broken_sound: data\021.wav
<bmp_end>
 
<frame> 0 in_the_sky
   pic: 999  state: 2000  wait: 3  next: 1  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30  injury: 60  
   itr_end:
   bdy:
      kind: 0  x: 6  y: 9  w: 44  h: 46
   bdy_end:
<frame_end>
 
<frame> 1 in_the_sky
   pic: 999  state: 2000  wait: 2  next: 2  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30  injury: 60  
   itr_end:
   bdy:
      kind: 0  x: 6  y: 9  w: 44  h: 46
   bdy_end:
<frame_end>
 
<frame> 2 in_the_sky
   pic: 999  state: 2000  wait: 3  next: 3  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30  injury: 60
   itr_end:
   bdy:
      kind: 0  x: 6  y: 9  w: 44  h: 46
   bdy_end:
<frame_end>
 
<frame> 3 in_the_sky
   pic: 999  state: 2000  wait: 2  next: 4  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30  injury: 60
   itr_end:
   bdy:
      kind: 0  x: 6  y: 9  w: 44  h: 46
   bdy_end:
<frame_end>
 
<frame> 4 in_the_sky
   pic: 999  state: 2000  wait: 3  next: 5  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30  injury: 60
   itr_end:
   bdy:
      kind: 0  x: 6  y: 9  w: 44  h: 46
   bdy_end:
<frame_end>
 
<frame> 5 in_the_sky
   pic: 999  state: 2000  wait: 2  next: 999  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30  injury: 60
   itr_end:
   bdy:
      kind: 0  x: 6  y: 9  w: 44  h: 46
   bdy_end:
<frame_end>
 
<frame> 10 on_hand
   pic: 999  state: 2001  wait: 0  next: 0  dvx: 0  dvy: 0  centerx: 29  centery: 56
   wpoint:
      kind: 2  x: 29  y: 56  weaponact: 35  attacking: 0  cover: 0  dvx: 0  dvy: 0 
   wpoint_end:
<frame_end>
 
<frame> 20 on_ground
   pic: 999  state: 2004  wait: 0  next: 150  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 14  x: 21  y: 37  w: 16  h: 18   vrest: 1
   itr_end:
   bdy:
      kind: 0  x: 11  y: 15  w: 36  h: 40
   bdy_end:
<frame_end>
 
<frame> 21 just_on_ground
   pic: 999  state: 2000  wait: 1  next: 999  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30  injury: 60
   itr_end:
<frame_end>
 
<frame> 150 lol    
  pic: 999  state: 3  wait: 1  next: 239  dvx: 3  dvy: 0  dvz: 0  centerx: 37  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   opoint:
      kind: 1  x: 80  y: 46  action: 20  dvx: 0  dvy: 0  oid: 667 facing: 0
   opoint_end:
<frame_end> 
 
<frame> 399 dummy
   pic: 999  state: 0  wait: 2  next: 999  dvx: 0  dvy: 0  centerx: 29  centery: 56
   bdy:
      kind: 0  x: 1  y: 19  w: 46  h: 15
   bdy_end:
<frame_end>


object data (it's like grass):
    DC-Code:
<bmp_begin>
file(0-0): bg\sys\lf\grass1.bmp  w: 5200  h: 40  row: 1  col: 1
<bmp_end>
 
<frame> 0 in_the_sky
   pic: 0  state: 2000  wait: 3  next: 1  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  bdefend: 30  
   itr_end:
<frame_end>
 
<frame> 1 in_the_sky
   pic: 0  state: 2000  wait: 2  next: 2  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  bdefend: 30  
   itr_end:
<frame_end>
 
<frame> 2 in_the_sky
   pic: 0  state: 2000  wait: 3  next: 3  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest:  bdefend: 30
   itr_end:
<frame_end>
 
<frame> 3 in_the_sky
   pic: 0  state: 2000  wait: 2  next: 4  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30
   itr_end:
<frame_end>
 
<frame> 4 in_the_sky
   pic: 0  state: 2004  wait: 3  next: 5  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30
   itr_end:
<frame_end>
 
<frame> 5 in_the_sky
   pic: 0  state: 2004  wait: 2  next: 999  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30
   itr_end:
<frame_end>
 
<frame> 10 on_hand
   pic: 0  state: 2001  wait: 0  next: 0  dvx: 0  dvy: 0  centerx: 29  centery: 56
   wpoint:
      kind: 2  x: 29  y: 56  weaponact: 35  attacking: 0  cover: 0  dvx: 0  dvy: 0 
   wpoint_end:
<frame_end>
 
<frame> 20 on_ground
   pic: 0  state: 2004  wait: 0  next: 0  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 14  x: 21  y: 37  w: 0  h: 0
   itr_end:
<frame_end>
 
<frame> 21 just_on_ground
   pic: 0  state: 2000  wait: 1  next: 999  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 0  x: 6  y: 9  w: 44  h: 46  dvx: 5  dvy: -7  fall: 70  vrest: 17  bdefend: 30
   itr_end:
<frame_end>
 
<frame> 399 dummy
   pic: 0  state: 0  wait: 2  next: 999  dvx: 0  dvy: 0  centerx: 29  centery: 56
<frame_end>


so what i'm trying to do is tall grass which is in front of the chars

any help?


RE: Bg opoint question(s) - Divisor - 01-02-2010

Since you are using the perspective tag, all you need to do is this:
-Spawn a type: 3 object with the perspective tag (in your case id: 666).
-Make that object slowly move towards the bottom of the background (use hit_j: x; x has to be bigger than 50).
-Calculate how much frames does the object need to reach the bottom and then make it go to the opoint frame.


RE: Bg opoint question(s) - Wiro - 01-02-2010

so far the object which spawns the grass has been type2 and when i edit it to type3 it stops working
and how can you calculate when the perspective makes it to spawn randomly?


RE: Bg opoint question(s) - Divisor - 01-02-2010

Dunno why doesn't it work...make sure you didn't miss some frames or something.
If it spawns randomly, then just so many frames that it would reach the bottom no matter where you spawn it.
An if you want the grass to be spawned at x: 0, then do the same with dvx (make the frames move to the left at the same time).


RE: Bg opoint question(s) - Wiro - 01-02-2010

when i change it back to type2 it works normally