Animation Interruption

gariantrollgariantroll Member Posts: 219
edited November -1 in Working with GS (Mac)
I have been at this for days and I have decided to get some help before I have a heart attack. I have characters animating in various attacks, but when the character attacks I want them to be able to get hit. THe problem arises once they get hit they do their "hurt" animation, but then they revert back to the last frame of their interrupted attack which is now the character image.

Any ideas?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi gariantroll; try putting a boolean attribute in the Rule:

    When Hurt is false
    Animate

    When Hurt is true
    Animate -the hurt frames

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • gariantrollgariantroll Member Posts: 219
    I did that but I am still having trouble, but I think I found a solution I am testing out now by adding a default frame that activates at the end of the hurt animation.
  • old_kipperold_kipper Member Posts: 1,420
    I set up a self state integer attribute that is referenced by rules to play animations to play different animations. Then use rules to change the self state and find this good way to manage animations. By doing a rule that makes changes the self state based on reaching a frame within animation (self image) you can revert to whatever state you want after a the hurt or whatever.

    Hope that helps

    Kipper
Sign In or Register to comment.