Posted July 29, 2020 by Gurpreet Singh Matharoo
Hey guys!
AttachPoint 1.4 is here, with some new features and improvements.
Using AttachPoint, you can place "attach points" on the frames of your sprites. You can then export the coordinates as code, and use them in your game to attach an object to another, or anything else you might wanna do. Sky's the limit!
You can now preview the animation you create, right inside AttachPoint. So you don't have to wait till you import the attachpoints into your game -- you can see it in action while making it!
As you can see, you can also control the speed of that animation.
Once you had exported a set of attachpoints using the "Export Code" button, you could load them back using "Load Points" -- but that would only load the attachpoints, so you had to re-import all sprites manually, and then load your points back.
Now, you don't have to do that. Once you've exported an animation, you can load it back using the "Restore Export" button, and it'll restore all the sprites you had loaded (including the preview image), and all your options will also be loaded back.
This is optional -- you can choose to load the attachpoints only, like before; this way, you can load the attachpoints of one sprite onto some other sprite.
You can now set a custom origin for the base sprite, instead of being limited to 9 options only.
The same window is also used to set the origin of the preview image, after one is loaded.
You can now snap the attachpoint angle in 16 directions, by holding "Control":
You might've noticed this already. Looks nice.
Seriously, check it out: http://matharoo.net/docs/attachpoint
An example project is now included on the main page, for GameMaker Studio 2, which demonstrates how coordinates exported from AttachPoint can be used.