So I figured out the problem with my positioning of trimmed sprites and images. When my designer gives me an image or set of sprites they are not trimmed, I then use these images to create imagesheets and the images are trimmed. However the positioning of images and sprites are given to me by the designer and are always top left. When I create images from the trimmed imagesheet the size of the image create is the trimmed size and not the original so the positions will be off by the trimmed amount.
I then have to use the data form texture packer to work out what this offset will be and move the images by the relevant amount. I found that with sprites I had to use center co-ordinates for this to be reliable.
The other place where this causes a problem that I have not been able to resolve is for buttons that are using trimmed imagesheets. My designer will give me two images for a buttons idle and hit state. The images will be provided with the same dimensions but when trimmed one of the states is usually a lot smaller/larger (button shrinking or growing when pressed). When the images are used by the button through an imagesheet one of the states will have been scaled up/down to the same size as the other state meaning the gfx are not displayed as intended.
[import]uid: 77943 topic_id: 30336 reply_id: 124874[/import]