Time for action — creating a player sprite
We are now going to make our player object and set the animations for it.
1. Start a blank game project (similar to the one we created in Chapter 1, Our First Look at Construct), and give it the name
MyPlatformer
. Then enter your author name in the Creator box.Note
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
2. Next, add a sprite into the layout.
3. We're now going to need some player graphics. You can use Construct's Picture Editor to make these or use a painting program of your choice. For this game, the player is ball-shaped and rolls around the map. It has animation frames for falling, jumping, dying, and winning a level. See the following reference image (exact image size does not matter, as the player...