Hey All,
I have been trying to make a Continuous Flowing Background flowing from the Top of the screen to the Bottom. It only seems to translate once then never see backgrounds again. Can anybody point me in the right direction here… has me baffled… Thank you all in advance… Code I have for this is below
Thanks Again
Andrew
[lua]
–Background
backg = display.newImage( “assets/graphics/backg.png” )
backg:setReferencePoint( display.CenterLeftReferencePoint )
backg.x = 0
backg.y = 0
backg2 = display.newImage( “assets/graphics/backg.png” )
backg2:setReferencePoint( display.CenterLeftReferencePoint )
backg2.x = 0
backg2.y = 320
–Initiate Moving Sequence (per-frame event to move the elements)
local tPrevious = system.getTimer()
local function move(event)
local tDelta = event.time - tPrevious
tPrevious = event.time
–Speed
local yOffset = ( 0.10 * tDelta )
–Background Movement
if not backg.y then return end
backg.y = backg.y + yOffset
if not backg2.y then return end
backg2.y = backg2.y + yOffset
if (backg.y + backg.contentHeight) < 0 then
backg:translate( 0, -320 * 2)
end
if (backg2.y + backg2.contentHeight) < 0 then
backg:translate( 0, -320 * 2)
end
end
Runtime:addEventListener( “enterFrame”, move ); [import]uid: 165071 topic_id: 32960 reply_id: 332960[/import]

I ended up playing with the + and - signs and with a bit of tweeking GOT IT!! 