I’m adding my main background to a display group and then trying to center it on the screen. This is the code I’ve used to try to center it.
lanesGroup.x = (display.contentWidth/2) - (lanesGroup.width/2)
Instead of having a centered display group it ends up even further to the left so that part of the display group is off the screen on the left side. Not sure what I’m doing wrong here.