Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
phil's problems of daily dc :D
#27
okay, i have a new problem and i hope you can help me out with it:
I want to create a throwable weapon, which bounces off the opponent once it hits him and then bounces back and so forth. basically it bounces alot. I am stuck at that already, but i will continue with the idea: Aside from that i want the weapon to multiply when hit, and the clones have the same basic behaviour as the weapon (bounce alot).

here comes the dandy part, my code so far:
    DC-Code:
<frame> 80 bounce_back
   pic: 29 state: 1002 wait: 0 next: 81 dvx: -10 dvy: 1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   bdy: 
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 81 bounce_back
   pic: 28 state: 1002 wait: 0 next 82 dvx: -10 dvy: 1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 82 bounce_back
   pic: 27 state: 1002 wait: 0 next 83 dvx: -10 dvy: 1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 83 bounce_back
   pic: 26 state: 1002 wait: 0 next 84 dvx: -10 dvy: 1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 84 bounce_back
   pic: 25 state: 1002 wait: 0 next 85 dvx: -10 dvy: 1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 85 bounce_back
   pic: 24 state: 1002 wait: 0 next 86 dvx: -10 dvy: 1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 86 bounce_back
   pic: 23 state: 1002 wait: 0 next 87 dvx: -10 dvy: 1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 87 bounce_back
   pic: 22 state: 1002 wait: 0 next 88 dvx: -10 dvy: 1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 88 bounce_back
   pic: 21 state: 1002 wait: 0 next 89 dvx: -10 dvy: 1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 89 bounce_forward
   pic: 22 state: 1002 wait: 0 next 90 dvx: 10 dvy: -1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   itr:
      kind: 3  x: 16  y: 16  w: 19  h: 19  fall: 60  bdefend: 16  injury: 35 
      catchingact: 80 80  caughtact: 132 132 
   itr_end:
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 90 bounce_forward
   pic: 23 state: 1002 wait: 0 next 91 dvx: 10 dvy: -1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   itr:
      kind: 3  x: 16  y: 16  w: 19  h: 19  fall: 60  bdefend: 16  injury: 35 
      catchingact: 80 80  caughtact: 132 132 
   itr_end:
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 91 bounce_forward
   pic: 24 state: 1002 wait: 0 next 92 dvx: 10 dvy: -1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   itr:
      kind: 3  x: 16  y: 16  w: 19  h: 19  fall: 60  bdefend: 16  injury: 35 
      catchingact: 80 80  caughtact: 132 132 
   itr_end:
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 92 bounce_forward
   pic: 25 state: 1002 wait: 0 next 93 dvx: 10 dvy: -1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   itr:
      kind: 3  x: 16  y: 16  w: 19  h: 19  fall: 60  bdefend: 16  injury: 35 
      catchingact: 80 80  caughtact: 132 132 
   itr_end:
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 93 bounce_forward
   pic: 26 state: 1002 wait: 0 next 94 dvx: 10 dvy: -1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   itr:
      kind: 3  x: 16  y: 16  w: 19  h: 19  fall: 60  bdefend: 16  injury: 35 
      catchingact: 80 80  caughtact: 132 132 
   itr_end:
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 94 bounce_forward
   pic: 27 state: 1002 wait: 0 next 95 dvx: 10 dvy: -1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   itr:
      kind: 3  x: 16  y: 16  w: 19  h: 19  fall: 60  bdefend: 16  injury: 35 
      catchingact: 80 80  caughtact: 132 132 
   itr_end:
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 95 bounce_forward
   pic: 28 state: 1002 wait: 0 next 96 dvx: 10 dvy: -1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   itr:
      kind: 3  x: 16  y: 16  w: 19  h: 19  fall: 60  bdefend: 16  injury: 35 
      catchingact: 80 80  caughtact: 132 132 
   itr_end:
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>
 
<frame> 96 bounce_forward
   pic: 22 state: 1002 wait: 0  dvx: 10 dvy: -1 centerx: 24 centery: 36 hit_a: 0 hit_d: 0 hit_j: 0
   itr:
      kind: 3  x: 16  y: 16  w: 19  h: 19  fall: 60  bdefend: 16  injury: 35 
      catchingact: 80 80  caughtact: 132 132 
   itr_end:
   bdy:
      kind: 0 x: 16 y: 16 w: 19 h: 19
   bdy_end:
<frame_end>


i get there because i have an ik3 in the throwing frames of the weapon.
    DC-Code:
<frame> 55 throwing
   pic: 15  state: 1002  wait: 0  next: 40  dvx: 0  dvy: 0  centerx: 24  centery: 36  hit_a: 0  hit_d: 0  hit_j: 0
   itr:
      kind: 3  x: 16  y: 16  w: 19  h: 19  fall: 60  bdefend: 16  injury: 35 
      catchingact: 80 80  caughtact: 132 132 
   itr_end:
   bdy:
      kind: 0  x: 16  y: 16  w: 19  h: 19
   bdy_end:
<frame_end>


note: i am using the baseball weapon (weapon 5) as basis, if you think it has an sprite issue too.
also the bounce back code seems to work (at least it bounces back, but not forward)
[sig placeholder until my new sig is finished]
should totally allow people to be all trolley on their birthday :D
Reply
Thanks given by:


Messages In This Thread
RE: phil's problems of daily dc :D - by Alblaka - 01-13-2010, 07:22 PM
RE: phil's problems of daily dc :D - by Alblaka - 01-13-2010, 07:35 PM
RE: phil's problems of daily dc :D - by Bamboori - 01-13-2010, 07:39 PM
RE: phil's problems of daily dc :D - by Azriel - 01-13-2010, 07:45 PM
RE: phil's problems of daily dc :D - by MH-Razen - 01-13-2010, 10:14 PM
RE: phil's problems of daily dc :D - by MH-Razen - 01-15-2010, 06:22 AM
RE: phil's problems of daily dc :D - by mfc - 01-04-2012, 02:32 PM
RE: phil's problems of daily dc :D - by mfc - 01-04-2012, 03:22 PM
RE: phil's problems of daily dc :D - by mfc - 01-04-2012, 06:18 PM
RE: phil's problems of daily dc :D - by mfc - 01-04-2012, 07:23 PM
RE: phil's problems of daily dc :D - by mfc - 01-04-2012, 08:20 PM
RE: phil's problems of daily dc :D - by YinYin - 06-11-2012, 01:49 PM
RE: phil's problems of daily dc :D - by YinYin - 06-11-2012, 07:48 PM
RE: phil's problems of daily dc :D - by The Lost Global Mod - 06-26-2013, 08:11 AM
RE: phil's problems of daily dc :D - by YinYin - 06-26-2013, 08:22 AM
RE: phil's problems of daily dc :D - by YinYin - 06-26-2013, 09:57 AM



Users browsing this thread: 1 Guest(s)