Hi,
I have an asset which is a character model and has 2 animation clips associated with it. I want to play the animation when I move the position of the model object. Assume that the animation is a “walk” animation. I want to move the character object and play the walk animation. but when the animation clip ends the character object model goes back to its first place and the second run of the animation clip starts from there. So finally the character doesn’t actually move in the environment. Do you have any idea that how I can solve this problem?
I wish I had an answer for you.
I’m about to pull in a character with animation cycles too. I’m going to take a look at the Lerps tutorial again, I’ll also take a look at the manual.
Maybe some of the fantastic and helpful people on the forums will give us a quick answer or point us in the direction of a good video tutorial for this.
Please ![]()
—Josh
arefed,
I just got my character into my level with his animations working. I used the Lerpz character scripts along with the Lerpz springfollow camera. You can get them from the 3D platformer tutorial project
The thing that gave me tho most trouble was that I had to add the Character Controller component from the:add Component->Physics menu before I could get the scripts to work. Before I did that I was getting the error below.
I also had to add a new camera and name it exactly like the camera in the Lerpz tutorial.
If you haven’t already, read over the Character animation section in the Manual and the Platformer tutorial.
Hope this helps ![]()
—Josh

#1
Your character anims must be “on the spot” cycles. You use one scripting technique to control which animation is playing, and another to move the object in 3d space.
Try parenting your objects to an empty gameObject, or capsule or Character controller in unity, then move the parent around…Make sense?
AC