Question about avatar / .gifs pics


how do u make a gif with dif pics that move? like look at spider_stings avatar or that guy with zelda and mario avatar. its just pics that play in a certain order.

if i have the pics, what do i use to make it play like that/?