Search Unity

How "do something" while each X frames of animation.

Discussion in 'Animation' started by xiberio, Sep 9, 2013.

  1. xiberio

    xiberio

    Joined:
    Aug 5, 2013
    Posts:
    6
    I'm trying to implement a character roll on the floor, it's "pasive" so the user press forward one time, and then the character do a roll (while character is rolling, player can't controll it)
    My problem i that the animation of the roll is played, and then, the character move suddenly to the final position.
    I think i need to move the charater each 2 frames of aniamtion for example, so the player will move along with the animation, but i really don't know how to do this (i'm a newbie in unity).
    I've readed that Mecanim has not animation events, and animation curves are only for pro users. How could i imlpement this? Any clue?
    I'm really stuck with this.
    Thanks and sorry for my english.