O'Reilly logo

GameMaker Essentials by Nathan Auckett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sprite options

There are many options related to sprites, some more commonly used than others, but all of them have their uses depending on the situation.

Sprite origins

We will start with the most used option of any sprite, the origin.

The sprite origin defines the center point of a sprite. The origin is made up of two values, the X axis and the Y axis. The X and Y axes allow us to define the center point of a sprite on a 2D plane. A common place for a sprite origin is the middle of a circle, or the top left of a button.

The origin is represented by a gray cross on the image.

Sprite origin can be very useful when it comes to positioning and rotation. When placing an object in a room, the object locks to the grid based on the sprite origin attached ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required