its not that cool but if you look in the code that's how i did it.
Its not to hard to code simple animation like this and this is how: take your sprite, put it in a walking position, move the legs in a different walking position, the more you put in the better it looks.