YesNoOk
avatar

Inserting an alternative turning animation (Read 527 times)

Started by daraku, December 09, 2017, 12:39:31 am
Share this topic:
Inserting an alternative turning animation
#1  December 09, 2017, 12:39:31 am
  • **
I've an hyper where the p1 is a tank. When it is near to enemy it turning, but the animation of turning doesn't appear.

[State 1003, 3]
type = ChangeAnim ; turnig
trigger1 =  !facing && anim = 4003
value = 4007

Where 4003 is the animation of stance
Re: Inserting an alternative turning animation
#2  December 09, 2017, 01:40:23 am
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Put the ChangeAnim controller higher than the Turn controller

Re: Inserting an alternative turning animation
#3  December 09, 2017, 10:51:54 am
  • **
[State 1003, 3]
type = ChangeAnim ; turnig
trigger1 =  !facing && anim = 4003
value = 4007

[State 1101,Turn]
type = Turn
trigger1 = P2Dist X < -20

it still doesn't work. The animation doesn't appear, but it turning in a raw way
Re: Inserting an alternative turning animation
#4  December 09, 2017, 09:32:58 pm
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
Clearly, one or both of the triggers is not true.

Try "facing" instead of "!facing"

Check you are actually in anim 4003

Make sure you don't have another ChangeAnim triggering, overriding this one