06-26-2013, 08:11 AM
(This post was last modified: 06-26-2013, 08:12 AM by The Lost Global Mod.)
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:
i get there because i have an ik3 in the throwing frames of the weapon.
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)
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
should totally allow people to be all trolley on their birthday

Chat

