Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
GameMaker Programming By Example

You're reading from   GameMaker Programming By Example Master the development of 2D games by learning to use the powerful GameMaker Language and tools provided by the GameMaker: Studio workspace and engine!

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785887963
Length 212 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Brian Christian Brian Christian
Author Profile Icon Brian Christian
Brian Christian
Steven Isaacs Steven Isaacs
Author Profile Icon Steven Isaacs
Steven Isaacs
Arrow right icon
View More author details
Toc

Sprite animation


In this section, we will teach you how to animate your sprites as opposed to giving them single subimages for each state that they could be in. This is a very simple concept, so let's dive right in.

For this section, you might want to use an external program for your sprite editing so that you can easily draw different frames of animation for a single state with ease. Most external editors will allow you to (in some way) see the previous frame when editing the next one so that you have a frame of reference. A very good image editor we've found and used (although it is intended mainly for pixel art) is Aseprite, which is at http://www.aseprite.org. You could consider it both free and paid, and both versions are the same. For $10, you get a prebuilt program with everything ready, but you can also build the source from Aseprite's official GitHub repository. If you want to build it, some guides are available.

With your image editor, create two different animations, one for walking...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime