Limit display area to display group

When I run my app in a diferent device, with different resolution than my default one(320,480), I’m being able to see some translation effects that I’m using, an usually are hidden in my default screen as there is no border.

Is there anyway I could limit ALL content from showing outside of pre-determined area?

What I’m looking for is basically a way to “override” a display group width and height. Something like a mask, but using coords, preferably.

Hope someone can help :slight_smile:
Thanks! [import]uid: 151732 topic_id: 27878 reply_id: 327878[/import]

If within a display group you could have a Runtime listener for when an object in that group went outside of the bounds the app was originally created for, (eg; 320x480,) and then make it invisible if so, or alternatively a mask would be another option as you suggested, or black rectangles (at the very front of the group) outside of the original screen bounds.

Peach :slight_smile: [import]uid: 52491 topic_id: 27878 reply_id: 112867[/import]

Thanks… and if I were to use a mask, is there some way I could use a rectangle display object instead of an image? [import]uid: 151732 topic_id: 27878 reply_id: 113080[/import]

No, you’d need an image to use as the mask I believe. You could either use a mask OR rectangles :slight_smile: [import]uid: 52491 topic_id: 27878 reply_id: 113158[/import]

Yeah, thanks again, Peach, I ended up solving it using black rectangles.

But I got a new question.

My app will be mostly informative, with lots of text and photos and I want it to run on as many devices as possible. I understand that I can use dynamic image selection depending on the device resolution, but I’m under the impression that all my text and vector-based elements are being streched and look really ugly when I test it in the iPad simulator. Is it something that only looks bad on the simulator or should I worry? And if I should worry, how can I solve this problem?

Although I have an iPad, I don’t have apple’s certificate yet (it’s quite burocratic to get it where I live and I’ll be getting it on 2 or 3 weeks, probably), so I can’t test it in a real device.

PS: I was developing it with configs set to 320x480, hoping to target most devices this way.

Thanks for all your help so far :slight_smile: [import]uid: 151732 topic_id: 27878 reply_id: 113694[/import]

Text should automatically become retina in build 840 - have you given that a go with it yet? :slight_smile: [import]uid: 52491 topic_id: 27878 reply_id: 113714[/import]

I’m downloading it right now and will be testing this new build really soon, but what “become retina” actually means?

And is it a solution for both iOS and Android or just iOS?

Thanks a lot :slight_smile:

---- Edited…

Ok, I just tested it on xCode simulator on every device available and it works incredibly well on all of them. But my question regarding Android stands :slight_smile: [import]uid: 151732 topic_id: 27878 reply_id: 113944[/import]

Sorry, I probably could have worded that better - I was answering threads at about 2am last night and got a little dopey :wink: Glad you figured out what I meant, despite that.

I am unsure as to whether or not this works on Android for 100% certain, however I *believe* it should do just fine. Have you done a test build yet? (You don’t need a license to test a debug build on device.)

Peach :slight_smile: [import]uid: 52491 topic_id: 27878 reply_id: 114031[/import]

I’ve tested it using Corona’s simulator and choosing “Galaxy Tab” and it seems my text is being streched and I don’t have any Android devices to test on, unfortunately.

You said “You don’t need a license to test a debug build on device.” but you meant only Android devices, right? As far as I know I need an Apple’s license test it in their devices :confused:

I’ll try to get my hands on an Android device and let you know if it works :smiley:

Thanks [import]uid: 151732 topic_id: 27878 reply_id: 114126[/import]

You need to be a licensed Apple developer to test on iOS, although you do not need a Corona license to test on iOS or Android. (Hope that clarifies.)

I have an Android and would offer to test but IIFC it’s the same dimensions as an iPhone which wouldn’t help at all.

RE the stretching, just to clarify, what scaling option are you using? [import]uid: 52491 topic_id: 27878 reply_id: 114191[/import]