The Sprite Sheet
Before you can animate sprites from a sprite sheet, you first need a sprite sheet. Don’t start panicking just yet. If you don’t have a sprite sheet, you can just use one that I have already created here: https://www.kirupa.com/images/sprites_final.png (This is the same sprite sheet I will be using in our explanation and code, so I encourage you to use it if this is your first foray into creating animations from sprites.)
Now, if you are brave enough to want to create your own sprite sheet, then there are a variety of tools out there that can help you out with this. My favorite is Flash Professional’s Generate Sprite Sheet functionality:
Get hands-on with 1400+ tech skills courses.