Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with normal_weapon_atck
#1
Hi guys! I newly started to dating characters and i have problem. I did frames for "normal_weapon_atck", but it doesn't work. Here are those frames:
Code:
<frame> 20 normal_weapon_atck
   pic: 16  state: 3  wait: 1  next: 999  dvx: 0  dvy: 0  centerx: 18  centery: 56  hit_a: 21  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 43  y: 25  weaponact: 35  attacking: 1  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 27  y: 20  w: 32  h: 60
   bdy_end:
<frame_end>

<frame> 21 normal_weapon_atck
   pic: 17  state: 3  wait: 1  next: 22  dvx: 0  dvy: 0  centerx: 18  centery: 56  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\008.wav
   wpoint:
      kind: 1  x: 37  y: 27  weaponact: 33  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 30  y: 19  w: 28  h: 61
   bdy_end:
<frame_end>

<frame> 22 normal_weapon_atck
   pic: 18  state: 3  wait: 1  next: 999  dvx: 0  dvy: 0  centerx: 18  centery: 56  hit_a: 23  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 49  y: 28  weaponact: 23  attacking: 1  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 17  y: 21  w: 23  h: 59
   bdy_end:
   bdy:
      kind: 0  x: 4  y: 64  w: 14  h: 15
   bdy_end:
   bdy:
      kind: 0  x: 36  y: 46  w: 20  h: 14
   bdy_end:
<frame_end>

<frame> 23 normal_weapon_atck
   pic: 19  state: 3  wait: 1  next: 999  dvx: 0  dvy: 0  centerx: 18  centery: 56  hit_a: 25  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 43  y: 25  weaponact: 24  attacking: 1  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 41  y: 19  w: 29  h: 61
   bdy_end:
   bdy:
      kind: 0  x: 25  y: 61  w: 17  h: 18
   bdy_end:
<frame_end>

<frame> 25 normal_weapon_atck
   pic: 20  state: 3  wait: 1  next: 26  dvx: 0  dvy: 0  centerx: 18  centery: 56  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 75  y: 55  weaponact: 24  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 35  y: 28  w: 29  h: 61
   bdy_end:
   bdy:
      kind: 0  x: 25  y: 61  w: 17  h: 18
   bdy_end:
<frame_end>

<frame> 26 normal_weapon_atck
   pic: 21  state: 3  wait: 1  next: 999  dvx: 0  dvy: 0  centerx: 18  centery: 56  hit_a: 27  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 50  y: 28  weaponact: 34  attacking: 1  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 29  y: 16  w: 29  h: 63
   bdy_end:
<frame_end>
Can somebody tell me what's wrong with them?
Reply
Thanks given by:
#2
Here is the problem:
Code:
next: 999  dvx: 0  dvy: 0  centerx: 18  centery: 56  hit_a: 21
next is suppose to be 21 and hit_a should be 0.
Code:
next: 999  dvx: 0  dvy: 0  centerx: 18  centery: 56  hit_a: 23
next is suppose to be 23 and hit_a should be 0.

Do the same thing to the rest of 'em.

[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:
#3
I didn't save changes to sprite file, so that was the one of the reason that problem occur.
@A-Man, I want to do weapon combo - if i press attack button once, char attack once. When i press attack button five times - he attack five times too, and every attack looks different. Do you know how to do that?
Reply
Thanks given by:
#4
Add your other weapon attacks in new created frames(between numbers 234 and 393). Then use the hit_a tags at the end of each of your attacks to connect between them and to form a combo.

hit_a: here you write what frame the character will go to if the player pressed attack.
[Image: signature.png]
A-Engine: A new beat em up game engine inspired by LF2. Coming soon

A-Engine Dev Blog - Update #8: Timeout

Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)