# Creating Animations

## Animation in Phaser

Animation works by showing a set of images back to back very quickly. When we do this quickly, our mind sees it as movement. In a way, you’re tricking the mind to think that this set of images is just one thing that is moving.

We use spritesheets for things we want to be animated because we can create that animation by scrolling through the spritesheets. In order to animate spritesheets, there are two steps we must do.

The first step is to create the “instructions” for the animation

this.anims.create({
key: "dude_anim",

The next step is to simply tell the game to play the animation specified in our instructions. This can also be done in create().
this.dude.anims.play("dude_anim");