Jump to content
  • 0

Crouch walk code bug


Question

Posted

Hello folks, i have trouble with my code, when i crouch with my char he can walk forward or backward but then the crouching animation freeze on the first frame. The crouching animation get back to normal after one attack but it freeze when i walk forward while crouching, here my code :

 

  Reveal hidden contents

 

After some test its seems the problem is in the first part of the code the walk forward crouch animation, however I've failed to find the culprit in the code, can you see what I've done wrong ? 

banjoj10.png

2 answers to this question

Recommended Posts

  • 0
Posted
  On 6/4/2016 at 8:28 AM, Risotto said:

[State 16, 3]

type = ChangeAnim

trigger1 = command != "holdfwd"

value = 11

 

[State 17, 3]

type = ChangeAnim

trigger1 = command != "holdback"

value = 11

Expand  

 

The problem is these two blocks. You need to add triggerall = Anim != 11 to prevent the sctrl from triggering repeatedly.

 

Alternatively, you can replace ChangeAnim with ChangeState to have him go back to State 11.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...