– Declare the visible width and height of the screen as constants
_W = display.viewableContentWidth
_H = display.viewableContentHeight
local background = display.newRect(0, 0, 320, 480)
background:setFillColor(255,255,255)
local jump = display.newImage(“images/foo.png”)
jump:setReferencePoint(display.CenterReferencePoint)
jump.x = _W * 0.5
local bar = display.newImageRect(“jump.png”)
I get the error, “Use anchor points instead.”