This is just a proof of concept question. I’m checking out corona for a new game, and I wasn’t sure if this was possible. I have a play area of 960x640, but I want the background to stay centered at all times, it’s only a 480x320 background. Is that possible?
Am I making it clear enough? [import]uid: 8300 topic_id: 2717 reply_id: 302717[/import]
Create two groups for an example
[lua]grpBackground = display.newGroup()
grpPlayArea = display.newGroup()
local imgBackground = display.newImage(“myBackground.png”,0,0)
grpBackground:insert(imgBackground)
local gameObject = display.newImage(“YourObject.png”,0,0)
grpPlayArea:insert(gameObject)[/lua]
Then you can move that grpPlayArea around and the background will always stay in the same position.
[import]uid: 5712 topic_id: 2717 reply_id: 8075[/import]