x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Loop animation problem

So I have animated a character that walks and i just placed it on a map and if i click play than it starts walking. But when the animation ends than the character disappears and appears on his starting position where he was placed. how can I just let it walk and if the animation ends that the character walks again from the ending position? so just keep walking?

Product Version: Not Selected
Tags:
more ▼

asked Jan 10 '15 at 07:33 PM in Blueprint Scripting

avatar image

DF Creation Studios
21 11 14 18

avatar image DG Gage Jan 10 '15 at 08:42 PM

Does your animation itself involve the character moving forward? Typically, your walk animation will involve the character staying in place, and the actual vector change occurs in-game. This way, when the animation loops, there is no displacement.

avatar image DF Creation Studios Jan 10 '15 at 08:45 PM

yes the animation itself goes forward. And I want it to gor further than the original animation so some kind of loop except that the characters stays and moves further. please tell me how I could solve this if you can.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

You need to design your animation to stay in place. From what you described, it is likely as simple as going to each frame where you have the root moving and set it to the origin. Once this is done, your loop won't displace your character, allowing you to determine movement speed and trajectory however you like and get a nice, clean visual result.

more ▼

answered Jan 10 '15 at 08:50 PM

avatar image

DG Gage
1.7k 62 31 129

avatar image DF Creation Studios Jan 10 '15 at 09:02 PM

I'm sorry but how can I do that for looping my character moving forward animation without disappearing my character?

avatar image DG Gage Jan 10 '15 at 09:06 PM

The reason your character moves on loop is because, in the animation, they are moving. They are going from A to B. So when the loop restarts, they are back at A. Here's how to prevent that:

Go into whatever program you used to create the animation. Set all frames that involve the root joint moving to having the root joint at 0,0,0. Your character will appear to be walking in the animation, but will not actually be moving forward. This is what you want. Now, when you play the animation, they will stand still but look like they're walking in place.

This is perfect. Now you can loop the animation and they won't move. This means that you can now tell the character to move around in the game with the walking animation, and they will actually be walking. When they stop, you stop the walking animation. That's how this is achieved in games for something perpetual like walking.

avatar image DF Creation Studios Jan 10 '15 at 09:09 PM

Thank you for the long answer !

avatar image DG Gage Jan 14 '15 at 02:17 PM

Hey just checking up; did this solve your problem?

avatar image DF Creation Studios Jan 14 '15 at 02:51 PM

Yes, I know that it needs to stay on the same place to walk. But I got another issue, it is a little different but it looks like it. So my other issue is that if I animate something for the environment in another program and put it in ue4 than it will continue looping because it is moving from the place where it starts but I want to ask is how I can start the animation and then destroy the mesh+animation? I know how to work with trigger box but how to destroy the mesh after the animation ends?

avatar image DG Gage Jan 21 '15 at 06:06 PM

Go to your animation. Right click on the timeline and Add Notify. Make it a Custom Notify. You will be able to call this event (by whatever you named it) in the corresponding anim bp event graph.

You can slide the notify event on the animation timeline to have it trigger wherever you like within the animation.

You can simply make the event destroy the actor.

avatar image DF Creation Studios Jan 24 '15 at 12:29 PM

Thank you for your time !

avatar image DG Gage Jan 24 '15 at 03:12 PM

No problem at all! Would you mind accepting the answer if everything turned out well?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Old thread but I thought I would offer some input, because it sounds like he used a Mixamo character. I found that you can re-target anims to existing Mixamo skeletons in the Mixamo Animation pack and you get the old root bone which stops the looping.

more ▼

answered Aug 03 '17 at 11:21 PM

avatar image

DLROKen
31 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I think is solved with

in the animation in the options find the Root Motion Force Root Lock alt text

cattura.png (334.2 kB)
more ▼

answered Nov 03 '18 at 12:45 PM

avatar image

GiPalo
1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question