This line of code…
local menuGhost = display.newImage("menughost.png", 40, 188)
…and this chunk of code…
local menuGhost = display.newImage("menughost.png")
menuGhost.x = 40
menuGhost.y = 188
…both appear to put the objects at the same location – except that they don’t. One is offest from the other.
It appears that one of them assumes the reference point is the upper-left and one of them assumes the reference point is the center of the object.
Except…
When I do a transition.to() and rotate each one, each rotates around its center which tells me the reference point is the same for each.
So why the difference in location when they appear on the screen?
Thanks.
Jay
[import]uid: 9440 topic_id: 6712 reply_id: 306712[/import]

