I am not sure how I should set up my app to work with multiple devices while keeping screen resolution (not going off the screen). A lot of the time I do something like this:
rect.x = display.contentCenterX - 30
Is this ok to do while creating an app to run on multiple devices? From my experience, this seems to not work, since different screen resolutions will take the - 30 part differently, but I’m not quite sure.
So, do I have to do muliplication and division only when working with display objects to make sure they fit for multiple devices? Also, what do I have to do to get the build.settings and config.lua files set up for this?
Thanks.