newSpriteSheetFromData don't work with spriteColorRect values x or y equal -1

spriteColorRect = { x = -1, y = -1 } don't work :)))

It wouldn't make sense for spriteColorRect to have negative values. spriteColorRect defines where in your bitmap you have visible pixels for a given frame. So, spriteColorRect x and y values must be greater than or equal to 0.

Otherwise, what you're suggesting is for the frame to have pixels outside of itself which would be an error in how the spritesheet was packed. If anything, newSpriteSheetFromData should assert an error.

heh all values smaller then -1 works good

Well there's definitely a bug somewehre, but your spriteColorRect coords should be greater than or equal to 0.

http://developer.anscamobile.com/forum/2010/10/18/spritesheet-data-file-explained

views:1774 update:2011/10/11 22:13:38
corona forums © 2003-2011