Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
change direction?
#1
Hi, how can I change direction of my char moving with arrows during an attack? I'm using state: 4 and have something like that:
Code:
<frame> 291 light_run pic: 79 state: 15 wait: 2 next: 292 dvx: 0 dvy: 0 dvz: 0 centerx: 39 centery: 79 hit_a: 0 hit_d: 0 hit_j: 0 sound: data\119.wav wpoint: kind: 1 x: 30 y: 50 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end> <frame> 292 light_run pic: 80 state: 4 wait: 1 next: 293 dvx: 40 dvy: 0 dvz: 6 centerx: 39 centery: 79 hit_a: 236 hit_d: 219 hit_j: 282 wpoint: kind: 1 x: 30 y: 50 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: opoint: kind: 1 x: -4 y: 66 action: 51 dvx: 0 dvy: 0 oid: 524 facing: 0 opoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end> <frame> 293 light_run pic: 81 state: 4 wait: 1 next: 292 dvx: 40 dvy: 0 dvz: 6 centerx: 39 centery: 79 hit_a: 236 hit_d: 219 hit_j: 282 wpoint: kind: 1 x: 30 y: 50 weaponact: 30 attacking: 0 cover: 1 dvx: 0 dvy: 0 dvz: 0 wpoint_end: opoint: kind: 1 x: -4 y: 66 action: 51 dvx: 0 dvy: 0 oid: 524 facing: 0 opoint_end: bdy: kind: 0 x: 21 y: 18 w: 43 h: 62 bdy_end: <frame_end>
Reply
Thanks given by:
#2
Here's a tutorial by YinYin on how to make your character change direction with arrows during an attack. You can also use this technique to make the character charge an attack.

Even if State 4 worked, it would cause bugs, like pressing A can still make you go into Jump attack (by pressing both J+A at the same time for example).
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)