Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Bg-perspective multi-opoint question
#1
? 
Sry for spamming this section with multiple threads.

Anyway I'm trying to make like tall grass which would be in layers with
20 pixels space between them.
With the perspective tag I can get the weapon, which spawns one (1)
layer of the grass. How could I duplicate the layer up and down?

bg data:
    DC-Code:
name: Safari
width: 1200 zboundary: 365 505
shadow: bg\sys\safari\s.bmp  shadowsize: 37 9
perspective: 666
 
layer: 
  bg\sys\safari\forests.bmp
  transparency: 0  width: 800  x: 0  y: 128
layer_end
layer: 
  bg\sys\safari\grass1.bmp
  transparency: 1 width: 5200  x: 0  y: 320
layer_end
layer: 
  bg\sys\safari\s.bmp
  rect: 4706 x: 0  y: 356  width: 794  height: 172
layer_end


weapon which spawns the grass:
    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: 22  dvx: 0  dvy: 0  centerx: 29  centery: 56
   itr:
      kind: 14  x: 21  y: 37  w: 16  h: 18
   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> 22 lol    
  pic: 999  state: 2004  wait: 1  next: 1000  dvx: 0  dvy: 0  dvz: 0  centerx: 37  centery: 79 hit_j: 99
   opoint:
      kind: 1  x: -1199  y: 95  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>


grass data:
    DC-Code:
<bmp_begin>
file(0-0): bg\sys\safari\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 far:

when the battle battle starts
-an invisible weapon summons one (1) layer of grass

i need it to
-summon more layers, so it would be as many as possible with 20 pixel space between them (zwidth)
Reply
Thanks given by:
#2
wow, never saw this perspective tag in use, but gues it activate id 666 at frame... ? 0 maybe?

well, if it must be a weapon you spanw then go ahead like this: spawn a t3 object in frame 1 and get rid of the weapon, you cant really work with weapons...

Now go ahead with the t3: create a ik8 which is global (large x / width, zwidth and large y-scale, maybe also from -1000 to 1000) this should react on any char bdy so you get it on the ground.

Now move it into the corner with the zero placer and move it up / down compleatly, so then you can go on with moing it down / up and spawning the grass every 20 px

This all sounds quite complicated. I know Nave once created a state which allowed objects to move to the point in the left upper corner of the stage and replaced the zero placer and hit_j - so quite usefull - you might use this for your grass-thing...

Have fun ^^
[Image: random.php?pic=random]
www.lf-empire.de
Once I had a fortune, it said: "Leave now. Life is short. Time is luck"
Don't dream your life, live your dream!
Reply
Thanks given by:
#3
(01-09-2010, 11:42 AM)MH-Razen Wrote:  wow, never saw this perspective tag in use, but gues it activate id 666 at frame... ? 0 maybe?

well, if it must be a weapon you spanw then go ahead like this: spawn a t3 object in frame 1 and get rid of the weapon, you cant really work with weapons...

Now go ahead with the t3: create a ik8 which is global (large x / width, zwidth and large y-scale, maybe also from -1000 to 1000) this should react on any char bdy so you get it on the ground.

Now move it into the corner with the zero placer and move it up / down compleatly, so then you can go on with moing it down / up and spawning the grass every 20 px

This all sounds quite complicated. I know Nave once created a state which allowed objects to move to the point in the left upper corner of the stage and replaced the zero placer and hit_j - so quite usefull - you might use this for your grass-thing...

Have fun ^^
Shock thx... i guess but it's kinda too late
cause i already sort of solved this...
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)