YesNoOk
avatar

Character stuck in turning animation. (Read 278 times)

Started by Cyberq3000, December 10, 2018, 02:56:41 am
Share this topic:
Character stuck in turning animation.
New #1  December 10, 2018, 02:56:41 am
  • *
    • USA
So awhile back, i must have edited something on my character but i cant remember what it is.  But now my character is stuck and looping in the standing turning animation after P2 jumps over him.  The looping will stop if i attack. jump or crouch, but the loop will continue if i stand or walk.  I can't for the life of me figure out what i did awhile back to cause this problem to happen.  I was trying to look for a turning animation state but do not know where to locate it.
Last Edit: December 12, 2018, 04:07:30 am by Cyberq3000
Re: Character stuck in turning animation.
#2  December 10, 2018, 06:57:51 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Heya, in State 0 you should have a ChangeAnim controller that has Value = 0 (change to Stand).

There should be a trigger such as

trigger2 = anim = 5 && animTime = 0

Which means, you are in anim 5 and the anim has ended... so now trigger the ChangeAnim and go to anim 0.

If such a ChangeAnim does not exist in your state 0 then copy/paste this in and you should be good to go

Code:
[State 0, Change to Stand]
type = Changeanim
trigger1 = anim = 5 && animTime = 0 ;Turn anim over
value = 0

Let me know if you need any more assistance.

Re: Character stuck in turning animation.
New #3  December 12, 2018, 03:42:19 am
  • *
    • USA
I figured out my problem, i was messing with morphs and transformation codes for my characters and had to add the lines you posted and deleted part of the original on my list.

This is what I got.

[State 0, 1]
type = ChangeAnim
triggerall = time = 0
trigger1 = Anim != 0 && Anim != 5
value = ifelse(var(10)=0,0,9001)

[State 0, 1-1]
type = ChangeAnim
trigger1 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = 0



I had to do the same thing to the walking animations.
Last Edit: December 12, 2018, 04:07:00 am by Cyberq3000