From the course: Building a Physics-Based Platformer in GameMaker Studio Using GML

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Import an animated sprite

Import an animated sprite

- [Instructor] Now, let's import a series of images to create a simple animation. I'll create a new sprite by right clicking on the sprites folder and saying create sprite. This will be the running animation for our player so I'll call it S underscore player underscore running, and hit the load sprite button. I'll navigate to the exercise files, resources, assets, and go to the player sprites folder, and in the run folder we'll see the sequence of animations for our player running. I'll hit control A to select all of them, check the remove background button to make sure the white background is removed, and hit open. We can cycle through our images by clicking the green button here, and see that all the frames seemed to be aligned correctly. Lastly, I'll hit the center button, to set the origin of the sprite to the center of our image. To ensure the sprite aligns correctly with my ducking and jumping sprites, I'll set the Y origin to 120. If we wanna see a preview of the animation, we…

Contents