Hi guys im new to to corona and was trying to get my games background image to keep repeating over going from to the left. I got this from somewhere on the site but it leaves a huge blank space then it starts to repeat after a while
local bg1 = display.newImageRect("images/full-background1.png", display.contentWidth, display.contentHeight) bg1.anchorX = 480 bg1.anchorY = 320 bg1.x = display.contentCenterX bg1.y = display.contentHeight bg1.speed = 2 transition.to(bg1, {time = 12000, x =-224, iterations = 0} ) local bg2 = display.newImageRect("images/full-background1.png",display.contentWidth, display.contentHeight) bg2.anchorX = 544 bg2.anchorY = 240 bg2.x = display.contentWidth + 240 bg2.y = display.contentHeight transition.to(bg2, {time = 12000, x = 160, iterations = 0})
Any help would be much appreciated as i tried to not ask on here cause i know people can get frustrated with same questions being repeated.