Posts: 32
Threads: 3
Joined: Apr 2009
Hi!
Well, I'm pretty new here, and to the DC and i felt it was time for me to create some frames by myself :)
So, with a little bit help from TheNave I created a move where the character throws a knife.
Now, to the problem:
I have added some more frames so he may throw several knives after each other, but it is only the first knife that flies away :S
DC-Code:
<frame> 235 Throw_Knives
pic: 17 state: 3 wait: 3 next: 236 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 236 Throw_Knives
pic: 18 state: 3 wait: 3 next: 237 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 237 Throw_knives
pic: 19 state: 3 wait: 3 next: 238 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 238 Throw_knives
pic: 19 state: 3 wait: 5 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 239 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 60 y: 30 weaponact: 35 attacking: 0 cover: 1 dvx: 25 dvy: -1 dvz: 3
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 239 Throw_Knives 2
pic: 103 state: 3 wait: 3 next: 240 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 240 Throw_Knives 2
pic: 104 state: 3 wait: 3 next: 241 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 241 Throw_knives 2
pic: 105 state: 3 wait: 3 next: 242 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 242 Throw_knives 2
pic: 106 state: 3 wait: 4 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 235 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 60 y: 25 weaponact: 35 attacking: 0 cover: 1 dvx: 25 dvy: -1 dvz: 3
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
|
Thanks given by:
Posts: 119
Threads: 7
Joined: Mar 2009
Well you should add the hit_a: 235 in every frame, coz now he just throws 2 knives if you push attack in the right frame, if this is your problem
Thanks given by:
Posts: 32
Threads: 3
Joined: Apr 2009
(04-26-2009, 11:50 AM)DarkFirzenEX Wrote: Well you should add the hit_a: 235 in every frame, coz now he just throws 2 knives if you push attack in the right frame, if this is your problem
I did not actually understand that. I want him ti throw several knives after each other just like davis/dennis' balls. But there are some animations in between the throws also
Thanks given by:
Posts: 119
Threads: 7
Joined: Mar 2009
04-26-2009, 11:59 AM
(This post was last modified: 04-26-2009, 12:02 PM by DarkFirzenEX.)
DC-Code:
<frame> 235 Throw_Knives
pic: 17 state: 3 wait: 3 next: 236 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 236 Throw_Knives
pic: 18 state: 3 wait: 3 next: 237 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 237 Throw_knives
pic: 19 state: 3 wait: 3 next: 238 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 238 Throw_knives
pic: 19 state: 3 wait: 3 next: 239 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 239 Throw_knives
pic: 19 state: 3 wait: 5 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 60 y: 30 weaponact: 35 attacking: 0 cover: 1 dvx: 25 dvy: -1 dvz: 3
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
|
Ok now I think I understood... I corrected the code for you. I think now it will work.
What I did is that I added in every frame a hit_a: 237, so if you press attack, it will jump to frame 237, the frame where a knife appears.
And I deleted some frames which are useless..^^
Thanks given by:
Posts: 32
Threads: 3
Joined: Apr 2009
(04-26-2009, 11:59 AM)DarkFirzenEX Wrote:
DC-Code:
<frame> 235 Throw_Knives
pic: 17 state: 3 wait: 3 next: 236 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 236 Throw_Knives
pic: 18 state: 3 wait: 3 next: 237 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 237 Throw_knives
pic: 19 state: 3 wait: 3 next: 238 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 238 Throw_knives
pic: 19 state: 3 wait: 3 next: 239 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 239 Throw_knives
pic: 19 state: 3 wait: 5 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 60 y: 30 weaponact: 35 attacking: 0 cover: 1 dvx: 25 dvy: -1 dvz: 3
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
|
Ok now I think I understood... I corrected the code for you. I think now it will work.
What I did is that I added in every frame a hit_a: 237, so if you press attack, it will jump to frame 237, the frame where a knife appears.
And I deleted some frames which are useless..^^
You kinda got it. The "useless" frames was used so he had different animations when casting the knife. Like: Left hand - right hand, left hand - right hand. etc Its like davis. he shoots with both hands, and this guy throws with both ^^
Thanks given by:
Posts: 503
Threads: 21
Joined: Jan 2009
(04-26-2009, 11:59 AM)DarkFirzenEX Wrote:
DC-Code:
<frame> 235 Throw_Knives
pic: 17 state: 3 wait: 3 next: 236 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 236 Throw_Knives
pic: 18 state: 3 wait: 3 next: 237 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 237 Throw_knives
pic: 19 state: 3 wait: 3 next: 238 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 238 Throw_knives
pic: 19 state: 3 wait: 3 next: 239 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 239 Throw_knives
pic: 19 state: 3 wait: 5 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 237 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 60 y: 30 weaponact: 35 attacking: 0 cover: 1 dvx: 25 dvy: -1 dvz: 3
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
|
Ok now I think I understood... I corrected the code for you. I think now it will work.
What I did is that I added in every frame a hit_a: 237, so if you press attack, it will jump to frame 237, the frame where a knife appears.
And I deleted some frames which are useless..^^ It's better to add the hit_a tag to certain strategic points instead of pasting it thoughout the move - that'll just look weird and play awkward.
Thanks given by:
Posts: 101
Threads: 5
Joined: Mar 2009
04-26-2009, 12:07 PM
(This post was last modified: 04-26-2009, 12:14 PM by genevrier.)
Still some problem with DFEX's correction, because the opoint would not work when you are just jumped to the frame containing the opoint by a hit tag.
Maybe you should try like this..
DC-Code:
<frame> 235 Throw_Knives
pic: 17 state: 3 wait: 3 next: 236 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 236 Throw_Knives
pic: 18 state: 3 wait: 3 next: 237 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 237 Throw_knives
pic: 19 state: 3 wait: 3 next: 238 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 238 Throw_knives
pic: 19 state: 3 wait: 1 next: 243 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 60 y: 30 weaponact: 35 attacking: 0 cover: 1 dvx: 25 dvy: -1 dvz: 3
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 243 Throw_knives
pic: 19 state: 3 wait: 4 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 239 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 239 Throw_Knives 2
pic: 103 state: 3 wait: 3 next: 240 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 240 Throw_Knives 2
pic: 104 state: 3 wait: 3 next: 241 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 241 Throw_knives 2
pic: 105 state: 3 wait: 3 next: 242 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 242 Throw_knives 2
pic: 106 state: 3 wait: 1 next: 244 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 60 y: 25 weaponact: 35 attacking: 0 cover: 1 dvx: 25 dvy: -1 dvz: 3
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 244 Throw_knives 2
pic: 106 state: 3 wait: 4 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 235 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
|
Thanks given by:
Posts: 1,003
Threads: 3
Joined: Mar 2008
@ DarkFirzenEX
your code was pretty useless and wrong
DC-Code:
<frame> 235 Throw_Knives
pic: 17 state: 3 wait: 3 next: 236 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 236 Throw_Knives
pic: 18 state: 3 wait: 3 next: 237 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 237 Throw_knives
pic: 19 state: 3 wait: 3 next: 238 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 238 Throw_knives
pic: 19 state: 3 wait: 0 next: 239 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 60 y: 30 weaponact: 35 attacking: 0 cover: 1 dvx: 25 dvy: -1 dvz: 3
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 239 Throw_knives
pic: 19 state: 3 wait: 5 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 240 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 240 Throw_Knives 2
pic: 103 state: 3 wait: 3 next: 241 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 241 Throw_Knives 2
pic: 104 state: 3 wait: 3 next: 242 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 242 Throw_knives 2
pic: 105 state: 3 wait: 3 next: 243 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
opoint:
kind: 2 x: 25 y: 18 action: 20 dvx: 0 dvy: 0 oid: 120 facing: 0
opoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 243 Throw_knives 2
pic: 106 state: 3 wait: 0 next: 244 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0
wpoint:
kind: 1 x: 60 y: 25 weaponact: 35 attacking: 0 cover: 1 dvx: 25 dvy: -1 dvz: 3
wpoint_end:
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
<frame> 244 Throw_knives 2
pic: 106 state: 3 wait: 4 next: 999 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 235 hit_d: 0 hit_j: 0
bdy:
kind: 0 x: 21 y: 18 w: 43 h: 62
bdy_end:
<frame_end>
|
try this out, not sure if it was the problem, but the wpoint can be skipped if you press attack to early since the hit_a tag was in the same frame
Thanks given by:
Posts: 32
Threads: 3
Joined: Apr 2009
04-26-2009, 12:12 PM
(This post was last modified: 04-26-2009, 12:16 PM by Pirate.)
Thanks Nave, I will test it out
Edit:
Working fine. Thread solved.
Thanks given by:
|