firstly you have to design each frame of the animation you want - if its something simple like bopping villagers up and down you can just make a signature, slightly change the position of villagers and then save each one as a new image.
then on photoshop if you put place all images as different layers on the same file, you can highlight them all and select "convert layers into frames"
once you open up your timeline tab, you can set the time for each frame you want (experiment differently for what speed you want)
then export for web and save it as a gif
obviously this is an extremely quick explanation (sorry) but i self-taught myself how to make gifs over the internet when i was like 15 and it's not too difficult at all!! i'd recommend you do a quick google search for tutorials from tumblr because there are mannnyy and are all very helpful
good luck!