Tutorial 2 – Creating Player Sprite in Game Maker Studio 2
In Game Maker Studio 2 – go to the Resources area on the right of your screen:
- Right click on Sprites and click Create Sprite or you can click on Resources menu at the top of Game Maker studio.
- Make sure you name your sprites correctly – always prefix your sprites with the letter spr
- Name your first sprite sprPlayer
Importing your sprite
In the sprite window:
- Click the Import button
- Browse to where you have saved your player sprite GIF file
- 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 64×64 size sprite, the Origin will change to 32×32
There are some player spaceship sprites in the following ZIP file:
Download 2 Spaceshooter Assets