Hi there,
I am rather confused on one aspect for positioning, coming from a web developing world, if I position an object as such:
object.x = 100
object.y = 100
and hypothetically, there is a device which has a resolution of 90x90, would my object be rendered outside of view?
I am trying to figure out how to do fluid layout/positioning that would work in most devices. Is there a resource that talks about this?
hmm weird I tried to edit the post but I cannot because the list of forums is not listed, I could only select “please select” option, I am using mac chrome latest build.
It depends on the reference point which can be set as well.
The size of the sprite + reference point may put it out of view depending on the device. This is typically why you should not hide elements this way, they still exist and may appear on other devices that have a bigger viewing area.
If they don’t appear on screen, I think Corona automatically handles the performance end of that. Don’t quote me on that. [import]uid: 11024 topic_id: 4022 reply_id: 12217[/import]
so are you saying that setting the x,y to 100,100, means that it will be positioned differently in 320x480 vs say 740x560? I do not need to do some calculations so that the position wont be off in different resolutions?
[import]uid: 11334 topic_id: 4022 reply_id: 12286[/import]
Sorry I should mention that depending on your scaling settings (and your usage of the code), Corona will scale to the size of the screen rather than always position objects at absolute pixel value. You can confidently develop for one device and have it fit just fine. The overflow comes from varying screen proportions, which is what I was talking about earlier. [import]uid: 11024 topic_id: 4022 reply_id: 12287[/import]