2D Toolkit Forum

2D Toolkit => Support => Topic started by: RhapsodyGames on June 08, 2014, 08:45:26 am

Title: Platform-option understanding
Post by: RhapsodyGames 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?
Title: Re: Platform-option understanding
Post by: unikronsoftware 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.