Edit Points
Points are reference locations that refer to a specific location around a sprite. Every sprite starts with two default points, named “Origin” and “Center”. Each of these points can be moved from their default locations.
- Origin point is created at the top-left corner of the sprite image. This point is used to position the image of the sprite object on the scene.
- Center point is created at the halves of the dimensions of the image. The Center point, also called “anchor” or “pivot” in other game engines, is the point around which the image is rotated or flipped.
Adding new points
Below all the animations, there is an Edit Points option.
Clicking on this option opens up a new dialog, in which, coordinates for the origin and the center of the sprite are already filled.
You can add points using the + symbol in the bottom right of the dialog. These points can be used as references for different actions. You can see an example here.
To add unique points for different animations of the same sprite, disable the “Share same points for all animations” option.
To add unique points for different instances of the same sprite, disable the “Share same points for all sprites of this animation” option.
Editing the default origin and center points
If the sprite images are not centered, or the image should rotate around a specific position, you can change the position of the Origin and Center point. By default, the center point position is automatically computed. If you want to change its position, click on the Pen icon next to it: