Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

TexturePacker, spritsheets and @2x images...
Started by clalvial Aug 28 2012 04:25 AM

29 replies to this topic
[TOPIC CONTROLS]
Page 2 of 2 1 2
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

danedwar

[GLOBAL: userInfoPane.html]
danedwar
  • Enthusiast

  • 47 posts
  • Corona SDK

Looks like there's already a bug posted.

15619 "Imagesheet - loading of trimmed sprites using newImageRect is broken!"

It has been around for a couple of months though. Danny and Tom Newman are playing pass the parcel with the bug :)
uid: 77943 topic_id: 30336 reply_id: 123240


[TOPIC: post.html]
#27

krystian6

[GLOBAL: userInfoPane.html]
krystian6
  • Contributor

  • 560 posts
  • Corona SDK

Crap... always something...
I would love to finally publish my game, but with bugs like this I loose any hope.

I think I've bought corona license for a single game, which will probably not return the cost of the license, not to mention development. FFS.
uid: 109453 topic_id: 30336 reply_id: 123531


[TOPIC: post.html]
#28

danedwar

[GLOBAL: userInfoPane.html]
danedwar
  • Enthusiast

  • 47 posts
  • Corona SDK

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.
uid: 77943 topic_id: 30336 reply_id: 124874


[TOPIC: post.html]
#29

ghost_of_vitor

[GLOBAL: userInfoPane.html]
ghost_of_vitor
  • Observer

  • 1 posts
  • Corona SDK

Hi! I have big swf file, and i want to make sprite sheet from. It is to big and i want to make to atlases. I`m using multipack and it`s putting subtextures to png without right sorting (1 frame of animation is in one png, second in another). What option should i use to make the right order of frames in both pngs?



[TOPIC: post.html]
#30

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi @ghost_of_vitor,

Under the "Layout" sub-menu, select "Basic" for the "Algorithm" drop-down (not "MaxRects"). This will expose "Sort by" and "Sort Order" options.

 

Hope this helps,

Brent




[topic_controls]
Page 2 of 2 1 2
 
[/topic_controls]