Hello Guest

Author Topic: Platform-option understanding  (Read 2979 times)

RhapsodyGames

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 40
    • View Profile
Platform-option understanding
« on: June 08, 2014, 08:45:26 am »
Hello, I've find a platgorm feature in spritCollection, but I dont get it, how exactly it works?
I understand that it bases on using different atlasses, but what happens with sprites?
For example: In my games I need to use both high and low resolutions (2048*1536 and 1024*768), I add first platform for 1024*768, x1, then I add x2. And it's just increase max. size of texture. If I'm trying to delete sprite, or replace it, it apply to both atlasses. So what's the point of platforms?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Platform-option understanding
« Reply #1 on: June 09, 2014, 12:44:25 pm »
The platforms is so you can select which one you want to use depending on the device you're running on. Eg while running on an iPad2 you'll choose 1024x768 and when on a retina iPad you'd choose the 2048x1536 versions. Adding platforms will create 2 independent sprite collections, and the correct one gets picked for the platform you're running on.