I am having problems with my animation and keyboard input.
I will briefly explain the details-- I have the following code to move forward in my update method:
I call the the walkForward() method to actually transform the character to its new position. setRun() sets the characters animations qualities. The problem is that when I press a key the model is being transform like it is supposed to but the animation becomes frozen when the model is being moved. Only when I release the key does the animation continue. How can I resolve this?
I think that I had this same problem when I first was implementing model movement with animations. However, I don't see anything wrong in nymon's solution and I don't recall having to do anything really special for it other than stop/start the animation based on if the model was moving or not. I'm sure that the original problem is due to resetting the animation each time setRun() is called. I'll take a look at my code when I get home and see if I find anything different than the solution already provided.