Hi,
I’m making pretty simple demo using these free graphics: http://www.vickiwenderlich.com/2013/02/free-game-art-flying-goldfish/
I’ve created a fish object, which has physics body. On tap:
local function boostFish(e) fish:applyLinearImpulse( 90, -90, fish.x, fish.y) end
So it boosts Fish.
The problem is I’m moving a camera (http://developer.coronalabs.com/code/move-camera): camera.x = -fish.x + screenWidth / 2 in enterFrame event and it centers screen on fish, however I want to loop 2 backgrounds (see images in link) to make effect of moving world and I don’t know how to calculate their positions to make such effect.
Any help will be appreciated,
Regards