2D Toolkit Forum

2D Toolkit => Support => Topic started by: x8105 on April 24, 2013, 11:55:27 am

Title: Padding and Sprite Sheets.
Post by: x8105 on April 24, 2013, 11:55:27 am
When creating a sprite atlas, is there a way to add a padded amount to sprites created with spritesheets.
Solved, Did this by going into the Spritesheets Config and setting the padding to Black zero alpha,


On another note and sprite that is horizontal converts to a verticle sprite, is there a way to overcome this and make Horizontal Sprites Horizontal?
Title: Re: Padding and Sprite Sheets.
Post by: unikronsoftware on April 24, 2013, 11:59:24 am
You can't disable sprite rotation in this version. Is there any reason you'd want to? It is automatically corrected and accounted for when you create a sprite.
Title: Re: Padding and Sprite Sheets.
Post by: x8105 on April 24, 2013, 12:12:10 pm
It makes for an easy export to Tiled Tilemap for our users to create there own custom maps. otherwise I'm going to do a little bit of photochopping.
Title: Re: Padding and Sprite Sheets.
Post by: unikronsoftware on April 24, 2013, 12:14:21 pm
You can create your own sprite collection in code. tk2dSpriteCollectionData.CreateFromTexture - that way you can define regions yourself, and let your users create whatever they want there?