Animation Tutorial

Question is regarding Tutorial section 7-Animations:

How to let the “Oto” walk with spacebar pressed without having choppy animations. I want him to start when pressing spacebar and want him to stop when i release spacebar. I replaced the ActionListener with an AnalogListener already, but holding spacebar pressed makes him walk choppy. I tried several things out, no solution. Could someone help ?



EDIT: Sry for posting it twice, browser was stuck, clicked inadvertantly.

Was my description unclear or is the problem too difficult?

I don’t use animations so can’t help you on that but maybe post a test case or similar? At the moment there isn’t really enough to go on…