Hi all
This is my first post and it’s quite a complex issue.
I’ve been learning Corona for about 3 weeks and jumped straight in and started coding my first ever app.
I have 4 “touch event” buttons on the screen and 6 other static graphics, I’ve been placing them relative to the screen centre using these variables,
scH=display.contentHeight*0.5 and scW=display.contentWidth*0.5
For example: button1.x=scW-170; button1.y=scH+105, everything looked good and the app ran perfect with a 360X480 screen res.
I got level 1 working exactly how I wanted it and was about to start implementing Storyboard for the other levels when I realised I had better make sure my app would work on different devices with different screen resolutions before things got too complex.
I made all my graphics in the 3 usual sizes, normal, @2x & @4x and used Rob Miracle’s ultimate config lua.
This is where things get messed up. :wacko:
When I use the simulator with the new config.lua everything is all over the place.
How do I know which size graphics the simulator is picking from the 3 provided when there are so many screen resolutions?
Is there a formula to place my buttons correctly, screen size/button size/space between buttons?
Or would I be better off creating my app for one device at a time?
I’m sure the professional coders here have to deal with this in their own apps all the time so I’m hoping you can give me some of your wisdom or tips on how you tackle this issue.
I can’t find the answers anywhere, please help!