Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Item with opoint
#1
I try make chest who after the destruction make other item.

    DC-Code:
<frame> 0 stone1
   pic: 0  state: 9999  wait: 0  next: 1  dvx: 0  dvy: 0  centerx: 13  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 1 stone2
   pic: 1  state: 15  wait: 1  next: 2  dvx: 0  dvy: 0  centerx: 13  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
opoint:
      kind: 1  x: 0  y: 0  action: 0  dvx: 0  dvy: 0  oid: 232    facing: 0
   opoint_end:
<frame_end>
 
<frame> 2 stone3
   pic: 2  state: 9999  wait: 0  next: 3  dvx: 0  dvy: 0  centerx: 13  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 3 stone4
   pic: 3  state: 9999  wait: 0  next: 178  dvx: 0  dvy: 0  centerx: 13  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 4 sstone1
   pic: 4  state: 9999  wait: 0  next: 5  dvx: 0  dvy: 0  centerx: 10  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 5 sstone2
   pic: 5  state: 9999  wait: 0  next: 6  dvx: 0  dvy: 0  centerx: 11  centery: 24  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 6 sstone3
   pic: 6  state: 9999  wait: 0  next: 7  dvx: 0  dvy: 0  centerx: 16  centery: 23  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 7 sstone4
   pic: 7  state: 9999  wait: 0  next: 4  dvx: 0  dvy: 0  centerx: 15  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>


item from opoint:


    DC-Code:
<bmp_begin>
file(0-99): sprite\sys\diament.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: 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  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: 1  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: 2  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: 3  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: 4  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: 5  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: 5  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: 5  state: 2004  wait: 0  next: 0  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: 3  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> 399 dummy
   pic: 5  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>


I even tried to make

    DC-Code:
opoint:
      kind: 1  x: 0  y: 0  action: 20  dvx: 0  dvy: 0  oid: 232    facing: 0
   opoint_end:


    DC-Code:
<frame> 20 on_ground
   pic: 5  state: 2004  wait: 20 next: 0  dvx: 0  dvy: 550 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>


But still no work, item only appears and dispear when it is on ground.
Reply
Thanks given by:
#2
I did something similar in my game. The problem is in the broken weapon file. Change the states in there to 3005, wait 0, then all the other frames to next 1000. Like this:
Code:
<frame> 0 stone1
   pic: 999  state: 3005  wait: 0  next: 1  dvx: 0  dvy: 0  centerx: 13  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

<frame> 1 stone2
   pic: 999  state: 3005  wait: 0  next: 1000  dvx: 0  dvy: 0  centerx: 13  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
opoint:
      kind: 1  x: 0  y: 0  action: 0  dvx: 0  dvy: 0  oid: 232    facing: 0
   opoint_end:
<frame_end>

<frame> 2 stone3
   pic: 999  state: 3005  wait: 0  next: 1000  dvx: 0  dvy: 0  centerx: 13  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

<frame> 3 stone4
   pic: 999  state: 3005  wait: 0  next: 1000  dvx: 0  dvy: 0  centerx: 13  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

<frame> 4 sstone1
   pic: 999  state: 3005  wait: 0  next: 1000  dvx: 0  dvy: 0  centerx: 10  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

<frame> 5 sstone2
  pic: 999  state: 3005  wait: 0  next: 1000  dvx: 0  dvy: 0  centerx: 11  centery: 24  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

<frame> 6 sstone3
   pic: 999  state: 3005  wait: 0  next: 1000  dvx: 0  dvy: 0  centerx: 16  centery: 23  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

<frame> 7 sstone4
   pic: 999  state: 3005  wait: 0  next: 1000  dvx: 0  dvy: 0  centerx: 15  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>

If your still having problems just say.

EDIT:
For the ground thing, change the item which lands on the ground to type 1, frame 60 is the frame used for things on the ground.
[Image: variaboss.png]
SUPER B*NER: :3
Reply
Thanks given by:
#3
again does not work well, if someone else has another idea, then post it plz.
Now I will try to do something with the state 40xxx, but I doubt it will work ;/
Reply
Thanks given by:
#4
Could I see a visual of what happens? Cause I don't understand how it doesn't work. When I got it working in my game.
[Image: variaboss.png]
SUPER B*NER: :3
Reply
Thanks given by:
#5
Here is my s suggestion: manage your chest as a type 3 object. Check the chests already made in the stage mod of kate lf2. In the hit frames of your ball; you can opoint the things you want. It is really more easier to manage.
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by:
#6
Thx guys, but problem is already solved.
Forget to put ,SOLVED' in topic, sorry.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)