Hello Guest

Author Topic: Spritesheet custom locations  (Read 4210 times)

justinISO

  • Newbie
  • *
  • Posts: 1
    • View Profile
Spritesheet custom locations
« on: November 04, 2013, 06:14:20 pm »
So is there a way to set custom x,y,width,height for a sprite location on a sprite sheet. I see how to use a sprite sheet that has perfectly tiled sprites but most sheets do not. Has this been addressed/is it possible in the 2DToolkit?

Thanks,
Justin

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Spritesheet custom locations
« Reply #1 on: November 05, 2013, 11:32:44 am »
No there isn't. You can build your own sprite collections using the runtime sprite collections feature, if you wish to have full control over positioning in atlases. Sample #13 shows how you can load sprite collections at runtime using your own atlases.