Hi,
I am trying to make an endless scrolling background but it seems to be jerky/not smooth. Here is some example code, I have also tried transition and translate but both have same issue. Anyone know why its not smooth?
local speed = 3
backbackground = display.newImageRect(“images/background.png”, 480, 570)
backbackground.x = display.contentWidth / 2
backbackground.y = display.contentHeight / 2
local function updateBackgrounds()
backgroundnear.x = backgroundnear.x - (speed + 1)
end
backgroundnear = display.newImageRect(“images/newbg.png”, 1002, 280)
backgroundnear.x = display.contentWidth
backgroundnear.y = display.contentHeight
timer.performWithDelay(1, updateBackgrounds, -1)
Thanks