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

spriteColorRect = { x = -1, y = -1 } don’t work :))) [import]uid: 69272 topic_id: 12140 reply_id: 312140[/import]

heh all values smaller then -1 works good [import]uid: 69272 topic_id: 12140 reply_id: 44201[/import]

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 [import]uid: 27183 topic_id: 12140 reply_id: 44207[/import]

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.

[import]uid: 27183 topic_id: 12140 reply_id: 44196[/import]