Hello Guest

Author Topic: Padding and Sprite Sheets.  (Read 4311 times)

x8105

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
Padding and Sprite Sheets.
« 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?
« Last Edit: April 24, 2013, 11:58:16 am by x8105 »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Padding and Sprite Sheets.
« Reply #1 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.

x8105

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 85
    • View Profile
Re: Padding and Sprite Sheets.
« Reply #2 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.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Padding and Sprite Sheets.
« Reply #3 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?