4 ms·
Hehe, i like it! Except that changing direction quickly left/right feels kinda bad. Seems you wait for the animation to finish before checking for new key pres
by dobin 5y ago
Hehe, i like it!
Except that changing direction quickly left/right feels kinda bad. Seems you wait for the animation to finish before checking for new key presses, not buffering the last pressed key.
- allenu 5y agoYup, good callout. There's definitely tweaks I could make to get a better "feel". For some background, I have a state machine for the animations and I've set up some to be interruptible starting on certain animations, and in this case, I the "turn around" animation has to play out completely before I allow new directions from the "director". (I call the characters on the screen "actors" and the source of directions "directors", which can be a human or AI.) Anyway, the fun was in coming up with the engine, of course. :)