Dynamic Content Scaling and Dynamic Image Resolution

Does Lime support Dynamic Content Scaling and Dynamic Image Resolution? If so, how does it work in Lime?

Thanks, Steven [import]uid: 7175 topic_id: 5992 reply_id: 305992[/import]

Lime supports what Corona supports which at present doesn’t include dynamic spritesheets. Content scaling will still work and stretch/shrink your spritesheets (tilesets) however you won’t be able to use different ones per different res like you would normally however I am looking into ways I could support this anyway. Not sure how long that would be though. [import]uid: 5833 topic_id: 5992 reply_id: 20582[/import]

From what ive noticed with content scaling is that the sprites start to develop odd 1px lines to one or more sides of a tile.

Ie on an iPhone 3 everything looks cool, on an iPhone 4 some of the tiles have the strange 1px line

I have seen this in Corona before when playing about with sprites etc… and I believe it is a problem with how the sprite is smoothed to the edges of each tile.

I would think this could be an issue with trying to develop a game in this manner.

What I would suggest is that you allow us to supply a 2nd hires file at 2x the resolution, you make the map @2x and then scale everything back down to match the original.

Sounds easy :wink: [import]uid: 5354 topic_id: 5992 reply_id: 28762[/import]

Hi Matt,

In theory the “@2x” suffix is now supported in Lime, I’ve tested it with stretched tilesets for the Retina versions however I don’t have any actual hi-res tilesets to test with to see the full benefits.

If you happen to have any it would be great to see them in action.

Graham [import]uid: 5833 topic_id: 5992 reply_id: 28776[/import]

Hey Graham

Ok I will try that.

Once ive got the field of view code running faster than 2 fps on an iPhone 4 of course, the tiles are now the least of my worries! [import]uid: 5354 topic_id: 5992 reply_id: 28782[/import]

Haha yea, having that many small tiles would certainly be tricky. Naturally feel free to hack away at the main Lime code if you feel like it and if you have any questions etc just ask.  [import]uid: 5833 topic_id: 5992 reply_id: 28784[/import]