Set Rule Based on iPad 2 vs iPad 3 @2x Images NEED HELP
Hey gang. So now that 0.9.94 can spit out retina ADHOC builds, I finally was able to test a theory that was thought up when I posed this same question early in the forums. @MarkOnTheIron came up with a theory that I could create a rule within an actor that has an image that would set a game attribute based on whether the actor's image contained "@2x". This would identify an iPad 3 vs and iPad 2.
I tested it in the GS Creator buy temporarily substituting an image that had @2x in the file name. Worked great. Swapped back in the original image that didn't have "@2x" (so that GS would add it during the publish). Tested an ADHOC build and it no longer worked.
Does anyone out there have any idea why this is? In ADHOC builds, does GS not change the name of the image within the actor itself, but rather, create some global rule outside of what we can access that reroutes images to the retina versions outside the actor?
Any help is appreciated as this idea of choosing between iPad 2 and iPad 3 has become mission critical to my game. Thanks!
I tested it in the GS Creator buy temporarily substituting an image that had @2x in the file name. Worked great. Swapped back in the original image that didn't have "@2x" (so that GS would add it during the publish). Tested an ADHOC build and it no longer worked.
Does anyone out there have any idea why this is? In ADHOC builds, does GS not change the name of the image within the actor itself, but rather, create some global rule outside of what we can access that reroutes images to the retina versions outside the actor?
Any help is appreciated as this idea of choosing between iPad 2 and iPad 3 has become mission critical to my game. Thanks!
Best Answers
-
tenrdrmer Posts: 9,934
it doesn't work because GS does all the Retina @2x stuff on the backend behind the scenes. You simply cannot setup to have your game using @2x in your condition for anything. if it worked like that then GS would would be broken on a retina device that called for a change image that didn't have @2x in the name. -
tenrdrmer Posts: 9,934
to be honest why are you trying to differentiate be tween them. theres no need that I can see. they are both capable of running the same apps just one has high res art.
Answers
I guess I can always create a one time pop up that asks, but that is pretty lame.