I tried to do a little flapping animation for a flag and it was fairly easy to do.
I've never seen a hat that played an animation, but that is what a flapping cape would have to do. Another issue would be making the animation look natural, because it would have to stay constant regardless of the way that the Blockhead moved.