Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Throwing once,twice... New Dcer in need of halp
#1
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

Here you got the code (Click to View)
My Current Achievements! (Click to View)
Reply
Thanks given by:
#2
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 :D
Reply
Thanks given by:
#3
(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 :D

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 :)
My Current Achievements! (Click to View)
Reply
Thanks given by:
#4
Here you got the code (Click to View)
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..^^
Reply
Thanks given by:
#5
(04-26-2009, 11:59 AM)DarkFirzenEX Wrote:  
Here you got the code (Click to View)
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 ^^
My Current Achievements! (Click to View)
Reply
Thanks given by:
#6
(04-26-2009, 11:59 AM)DarkFirzenEX Wrote:  
Here you got the code (Click to View)
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.
My projects:
=> Comet - LF2 ver.1.9/1.9c skin.
=> CRE - ComboRegenerativeEnemy.

Contact me if the links to my projects become unavailable.
Reply
Thanks given by:
#7
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>
Reply
Thanks given by:
#8
@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
Reply
Thanks given by:
#9
Thanks Nave, I will test it out :)

Edit:
Working fine. Thread solved.
My Current Achievements! (Click to View)
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)