So you think you can draw? In this lesson we will open up the sprite editor built into GameMaker and make our own animated sprites. If you are like me, however, you would rather just download some free graphics from the Internet. We will also learn how to use the sprite editor to create animated sprites from sprite sheets that you can find online.
Part A – Very Basics of the Sprite Editor
Watch the video: 06-02-A
Donefile: L06-02-A-Done.gmk
Challenge 1 – Draw Something!
Take a few minutes and draw your own sprite. You don’t have to make it a masterpiece. Maybe a ghost from Pacman, a space invader, or a really good stick figure trying to run. Test it out in your game. No video solution to this one.
Part B – Using Sprite Sheets
Watch the video: 06-02-B
Donefile: L06-02-B-Done.gmk
Challenge 2 – Street Fighter
Start with the pre-made game project
L06-02-X2-StartHere.gmk
Watch the Preview Video: L06-02-X2Preview
In the Level 06 Resource folder there is a nice sprite sheet for Ken, one of the main characters for the famous game Street Fighter. Use this sprite sheet to create the sprites for the following:
spr_fire, spr_standing, spr_punch, spr_kick, spr_crouch
Each animated sprite uses one row of the sprite sheet. The individual sprite squares are all 80 pixels X 80 pixels (easy sheet to work with).
After you have the 5 animated sprites, use the standing sprite and the kicking sprite and your own code to imitate the behaviour shown in the preview video.
Challenge 2 Solution
Solution Video: 06-02-X2Solution
Solution File: L06-02-X2-Done.gmk