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 Essentials

You're reading from   Gamemaker Essentials Learn all the essential skills of GameMaker: Studio and start making your own impressive games with ease

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784396121
Length 154 pages
Edition 1st Edition
Arrow right icon
Toc

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 to it. If the origin is in the middle of the object, then the object will look to the middle on the grid. When rotating a sprite, the origin is used as the pivot point. When creating something like a turret, you will put the origin on the place where...

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 ₹800/month. Cancel anytime