Hey guys, I have seen this a lot so i thought I would mention it.
How many of you are doing this?
local \_W = display.contentWidth
then using it like:
something.x = \_W \* 0.5/
There is an api which will position objects at the center of the screen for you without all these extra bits.
display.contentCenterX -- same as display.contentWidth \* 0.5
display.contentCenterY - same as display.contentHeight \* 0.5
I don’t know how many of you know of this handy api or how many of you use it. But I thought it was a valuable thing to remind people about.
[import]uid: 84637 topic_id: 28783 reply_id: 328783[/import]