← All articles
Game DevelopmentPublished 8 December 2019 · Updated 16 March 2024

Creating Player Sprite in GameMaker Studio

Tutorial 2 - Creating A Player Sprite in GameMaker Studio

In GameMaker Studio - go to the Resources area on the right of your screen:

  1. Right click on Sprites and click Create Sprite or you can click on Resources menu at the top of GameMaker Studio.
  2. Make sure you name your sprites correctly – always prefix your sprites with the letter spr
  3. Name your first sprite sprPlayer

insert sprite gamemaker

Importing your sprite

In the sprite window:

  1. Click the Import button
  2. Browse to where you have saved your player sprite GIF file
  3. Click Open and it should import each frame of your animated GIF

Set the sprite origin to centre

You want to reference the centre point of your sprite as the origin point for all of your x and y code co-ordinates.

To do this change Top Left to Middle Centre. If you have a 64x64 size sprite, the Origin will change to 32x32.

Code, Create, Play

Learning GameMaker?

Code Create Play takes you through building a complete game step by step over seven days.