Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Problem with cpoint
#1
Hello, I have a problem with cpoint. I have made a Type: 3 object that catches a character using itr: kind: 3 and makes the character dissapear. The object is supposed to dissapear after that, but it doesnt. Is there any way to fix that? Here is the code:

    DC-Code:
<frame> 165 catching
   pic: 999  state: 15  wait: 1  next: 165  dvx: 0  dvy: 0  dvz: 0  centerx: 30  centery: 79  hit_a: 50  hit_d: 177  hit_j: 0 
     itr:
      kind: 3  x: -200  y: -95  w: 400  h: 160  vrest: 7  zwidth: 20
      catchingact: 166 166  caughtact: 132 132  
   itr_end:
<frame_end>
 
<frame> 166 catching
   pic: 999  state: 9  wait: 5  next: 1000  dvx: 0  dvy: 0  dvz: 0  centerx: 30  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 
cpoint:
      kind: 1  x: 50  y: 180
      vaction: 1000 throwvz: -842150451  hurtable: 0 throwinjury: -842150451 decrease: 7 
   cpoint_end:
<frame_end>
Reply
Thanks given by:
#2
    DC-Code:
<frame> 165 catching
   pic: 999  state: 15  wait: 1  next: 165  dvx: 0  dvy: 0  dvz: 0  centerx: 30  centery: 79  hit_a: 50  hit_d: 177  hit_j: 0 
     itr:
      kind: 3  x: -200  y: -95  w: 400  h: 160  vrest: 7  zwidth: 20
      catchingact: 166 166  caughtact: 132 132  
   itr_end:
<frame_end>
 
<frame> 166 catching
   pic: 999  state: 9  wait: 0  next: 167  dvx: 0  dvy: 0  dvz: 0  centerx: 30  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 
cpoint:
      kind: 1  x: 50  y: 180
      vaction: 1000 throwvz: -842150451  hurtable: 0 throwinjury: -842150451 decrease: 7 
   cpoint_end:
<frame_end>
 
<frame> 167 catching
   pic: 999  state: 15  wait: 5  next: 1000  dvx: 0  dvy: 0  dvz: 0  centerx: 30  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 
<frame_end>


-------

Implement it.

If it doesn't work, on your code, in frame 166; opoint the same t3 object in defined frame.

Silverthorn edited this post 11-13-2011 08:18 PM because:
Y U NO [code=dc]
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by: ze64v08y
#3
You have to make sure frame 0 doesn't do anything. Like it automatically disappears. (in my case it goes to the bolas breaking)

Okay so this is the code for my Batman's Bat Bolas
Frame 1-9 & 70-71 looping is the flying of the attack
then when it catches the enemy it goes to frame 55-66 where it holds the enemy in place
after the time runs out it goes to frame 80-84 for the ripping the cords animation
    DC-Code:
<frame> 0 flying
   pic: 999  state: 3000  wait: 0  next: 80  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10 
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 22  y: 27  w: 55  h: 27
   bdy_end:
<frame_end>
 
<frame> 1 flying
   pic: 0  state: 3000  wait: 0  next: 2  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10 
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 2 flying
   pic: 1  state: 3000  wait: 0  next: 3  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10  
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
       kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 3 flying
   pic: 2  state: 3000  wait: 0  next: 4  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10 
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 4 flying
   pic: 3  state: 3000  wait: 0  next: 5  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10 
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 5 flying
   pic: 4  state: 3000  wait: 0  next: 6  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10 
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 6 flying
   pic: 5  state: 3000  wait: 0  next: 7  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10  
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 7 flying
   pic: 6  state: 3000  wait: 0  next: 8  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10 
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 8 flying
   pic: 7  state: 3000  wait: 0  next: 9  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10 
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 9 flying
   pic: 8  state: 3000  wait: 0  next: 70  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr: 
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10 
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 70 flying
   pic: 9  state: 3000  wait: 0  next: 71  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10 
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 71 flying
   pic: 10  state: 3000  wait: 0  next: 1  dvx: 28  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0 hit_Fa: 3
   itr:
      kind: 3  x: 5  y: 2  w: 45  h: 22  arest: 10 
      catchingact: 55 55  caughtact: 130 130  
   itr_end:
   bdy:
      kind: 0  x: 5  y: 2  w: 45  h: 22
   bdy_end:
<frame_end>
 
<frame> 10 hiting
   pic: 11  state: 3001  wait: 2  next: 11  dvx: -4  dvy: 0  centerx: 27  centery: 33  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 11 hiting
   pic: 12  state: 3001  wait: 2  next: 12  dvx: -4  dvy: 0  centerx: 27  centery: 42  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 12 hiting
   pic: 13  state: 3001  wait: 2  next: 13  dvx: -4  dvy: 0  centerx: 27  centery: 30  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 13 hiting
   pic: 14  state: 3001  wait: 2  next: 14  dvx: -4  dvy: 0  centerx: 27  centery: 15  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 14 hiting
   pic: 15  state: 3001  wait: 2  next: 1000  dvx: -4  dvy: 0  centerx: 27  centery: 0  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 20 hit
   pic: 11  state: 3002  wait: 2  next: 21  dvx: -4  dvy: 0  centerx: 27  centery: 35  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 21 hit
   pic: 12  state: 3002  wait: 2  next: 22  dvx: -4  dvy: 0  centerx: 27  centery: 33  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 22 hit
   pic: 13  state: 3002  wait: 2  next: 23  dvx: -4  dvy: 0  centerx: 27  centery: 42  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 23 hit
   pic: 14  state: 3002  wait: 2  next: 24  dvx: -4  dvy: 0  centerx: 27  centery: 15  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 24 hit
   pic: 15  state: 3002  wait: 2  next: 1000  dvx: -4  dvy: 0  centerx: 27  centery: 0  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 30 rebounding
   pic: 11  state: 3003  wait: 2  next: 31  dvx: -4  dvy: 0  centerx: 27  centery: 33  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 31 rebounding
   pic: 12  state: 3003  wait: 2  next: 32  dvx: -4  dvy: 0  centerx: 27  centery: 42  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 32 rebounding
   pic: 13  state: 3003  wait: 2  next: 33  dvx: -4  dvy: 0  centerx: 27  centery: 30  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 33 rebounding
   pic: 14  state: 3003  wait: 2  next: 34  dvx: -4  dvy: 0  centerx: 27  centery: 15  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 34 rebounding
   pic: 15  state: 3003  wait: 2  next: 1000  dvx: -4  dvy: 0  centerx: 27  centery: 0  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 40 disappearing
   pic: 0  state: 9  wait: 1  next: 41  dvx: 0  dvy: 0  centerx: 37  centery: 41  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 41 disappearing
   pic: 1  state: 9  wait: 1  next: 42  dvx: 0  dvy: 0  centerx: 37  centery: 41  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 42 disappearing
   pic: 2  state: 9  wait: 1  next: 1000  dvx: 0  dvy: 0  centerx: 28  centery: 41  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 55 catching
   pic: 16  state: 9  wait: 1  next: 56  dvx: 550  dvy: 550 dvz: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 56 catching
   pic: 17  state: 9  wait: 1  next: 57  dvx: 0  dvy: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 57 catching
   pic: 18  state: 9  wait: 1  next: 58  dvx: 0  dvy: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 58 catching
   pic: 19 state: 9  wait: 1  next: 59  dvx: 0  dvy: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 59 catching
   pic: 20  state: 9  wait: 1  next: 60  dvx: 0  dvy: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 60 catching
   pic: 21  state: 9  wait: 1  next: 61  dvx: 0  dvy: 550 centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 61 catching
   pic: 22  state: 9  wait: 1  next: 62  dvx: 0  dvy: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 62 catching
   pic: 23  state: 9  wait: 1  next: 63  dvx: 0  dvy: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 63 catching
   pic: 24 state: 9  wait: 1  next: 64  dvx: 0  dvy: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 64 catching
   pic: 25  state: 9  wait: 1  next: 65  dvx: 0  dvy: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 65 catching
   pic: 26  state: 9  wait: 1  next: 66  dvx: 0  dvy: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 66 catching
   pic: 27  state: 9  wait: 180  next: 80  dvx: 0  dvy: 550  centerx: 32  centery: 40  hit_a: 0  hit_d: 0  hit_j: 0
   cpoint:
      kind: 1  x: 30  y: 33
      vaction: 132  throwvz: -842150451  hurtable: 1 throwinjury: -842150451 
   cpoint_end:
<frame_end>
 
<frame> 80 hiting
   pic: 28  state: 3001  wait: 1  next: 81  dvx: 0  dvy: 0  centerx: 27  centery: 29  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 81 hiting
   pic: 29  state: 3001  wait: 1  next: 82  dvx: 0  dvy: 0  centerx: 27  centery: 24  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 82 hiting
   pic: 30  state: 3001  wait: 1  next: 83  dvx: 0  dvy: 0  centerx: 27  centery: 27  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 83 hiting
   pic: 31  state: 3001  wait: 1  next: 84  dvx: 0  dvy: 0  centerx: 27  centery: 25  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>
 
<frame> 84 hiting
   pic: 32  state: 3001  wait: 1  next: 1000  dvx: 0  dvy: 0  centerx: 27  centery: 20  hit_a: 0  hit_d: 0  hit_j: 0
<frame_end>


also why is the vaction: 1000 ?
Reply
Thanks given by: ze64v08y
#4
bashscrazy Wrote:also why is the vaction: 1000 ?

Because he wants caught char to get deleted.
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by:
#5
(11-13-2011, 08:28 PM)xmfcx Wrote:  
bashscrazy Wrote:also why is the vaction: 1000 ?

Because he wants caught char to get deleted.

Oh, I thought the character disappeared and he didn't want that.. lol
completely dis-regard my posts then.
Reply
Thanks given by:
#6
Oh, bash, i forgot frame 0 thingy:P.

It is about this: When you drop a char or char gets deleted when you have a state 9 frame with cpoint; it goes to frame 0.

So it is better for you to add an opoint to frame 166.
[Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg][Image: llqsMqz.jpg]
Reply
Thanks given by:
#7
Oh, so the object was going to frame 0. I put a next: 1000 in frame 0 and now it works fine, no need for a opoint. Also I didn't implement because I didn't know how to.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)