moving while crouching

Started by Aadmi, April 22, 2008, 06:50:42 PM

Previous topic - Next topic

Aadmi

is t possible to move while crouchng left and rght? if so how?,  havent seen any codes lke that.

BC

move while crouching? i guess youd need the animations first, then try copy and pasting the walking state in the common1.cns and adjust the state values.


should work.
Accepting commissions

Aadmi

Quote from: blackchaos07 on April 22, 2008, 06:53:57 PM
move while crouching? i guess youd need the animations first, then try copy and pasting the walking state in the common1.cns and adjust the state values.


should work.



its a will do trying......................................

Aadmi



okay i can move it works, but he problem is while doing it the opponent cant jump over me,   and i cant guard i've tried a lot does anyone have any suggestions on how to allow guarding and the opponent to jump over him  (and i though my dhalsim was coming along nicely, its lways something)


heres the codes : cns


Quote;Crouch Walk
[StateDef 22]
type = C
physics = C
sprpriority = 0
ctrl = 1

[state 22, 1]
type = VelSet
trigger1 = command = "crouchfwd"
x = const(velocity.walk.fwd.x)

[state 22, 2]
type = Velset
trigger1 = command = "holddownback"
x = const(velocity.walk.back.x)

[state 22, 3]
type = ChangeAnim
triggerall = vel x > 0
trigger1 = Anim != 22
value = 22
;---------------------------------------------------------------------------
;Crouch Walk
[StateDef 23]
type = C
physics = C
sprpriority = 0
ctrl = 1

[state 23, 1]
type = VelSet
trigger1 = command = "crouchfwd"
x = const(velocity.walk.fwd.x)

[state 23, 2]
type = Velset
trigger1 = command = "holddownback"
x = const(velocity.walk.back.x)

[state 23, 3]
type = ChangeAnim
triggerall = vel x < 0
trigger1 = Anim != 23
value = 23




and cmd

Quote;crouchbck
[State -1, crouchbck]
type = ChangeState
triggerall = !var(59)
triggerall = statetype = C
triggerall = statetype != A
triggerall = statetype != S
triggerall = statetype != L
triggerall = command = "crouchbck"
trigger1 = (statetype = c) && ctrl
value = 23
;--------------------------------------------------------------------------
crouchfwd
[State -1, crouchfwd]
type = ChangeState
triggerall = !var(59)
triggerall = statetype = C
triggerall = statetype != A
triggerall = statetype != S
triggerall = statetype != L
triggerall = command = "crouchfwd"
trigger1 = (statetype = c) && ctrl
value = 22